Skip to content

SyntaxHighlightingComponentGrammarFactoryParams

The loaded Prism module, handed to a grammar factory.

Import:

import type { SyntaxHighlightingComponentGrammarFactoryParams } from 'obsidian-dev-utils/obsidian/components/syntax-highlighting-component';

Signature:

export interface SyntaxHighlightingComponentGrammarFactoryParams

Properties

PropertyTypeDescription
prismPrismModuleThe loaded Prism module.

Methods

MethodReturnsDescription
requirePrismLanguage(language)GrammarReturns the grammar of an already registered Prism language, for nesting into the built grammar.

Links to this page: