Skip to content

SyntaxHighlightingComponentGrammarFactoryParams

The loaded Prism module, handed to a grammar factory.

Import:

import type { SyntaxHighlightingComponentGrammarFactoryParams } from '@mnaoumov/obsidian-lib/components/syntax-highlighting-component';

Signature:

export interface SyntaxHighlightingComponentGrammarFactoryParams

Properties

PropertyTypeDescription
prismPrismModuleThe loaded Prism module.
requirePrismLanguage(language: string) => GrammarReturns the grammar of an already registered Prism language, for nesting into the built grammar.

Links to this page: