Skip to content

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 SyntaxHighlightingComponentGrammarSource

Signature:

type SyntaxHighlightingComponentGrammarSource = ((params: SyntaxHighlightingComponentGrammarFactoryParams) => Grammar) | Grammar | string

Type: ((params: SyntaxHighlightingComponentGrammarFactoryParams) => Grammar) | Grammar | string


Links to this page: