shikiLanguageForDocument
constshikiLanguageForDocument: (options,languages) =>string|null
The Shiki grammar a document uses: an explicit map entry, then its extension (.tsx, .jsx),
then the default map. Hosts that choose grammars ahead of a document use the same answer.
Parameters
Section titled “Parameters”options
Section titled “options”Pick<HighlighterOperationContext, "documentId" | "languageId">
languages
Section titled “languages”ShikiLanguageMap | undefined
Returns
Section titled “Returns”string | null