SyntaxHighlightingComponentGrammarSource
A grammar, the name of an already registered language to alias, or a factory that builds the grammar from the loaded Prism module.
Import:
import type { SyntaxHighlightingComponentGrammarSource } from 'obsidian-dev-utils/obsidian/components/syntax-highlighting-component';Signature:
export type SyntaxHighlightingComponentGrammarSourceSignature:
type SyntaxHighlightingComponentGrammarSource = ((params: SyntaxHighlightingComponentGrammarFactoryParams) => Grammar) | Grammar | stringType: ((params: SyntaxHighlightingComponentGrammarFactoryParams) => Grammar) | Grammar | string
Links to this page: