Skip to Content
Md2Docx logo Md2Docx

resolveTokenType()

Updated 10 Nov 2026

resolveTokenType(scopes?): TokenType | undefined

Defined in: code-shiki/src/code-shiki.ts:113

Maps TextMate grammar scope chains to md2docx TokenType. Searches from the most specific (innermost) scope to the outermost.

Parameters

scopes?

string[] | null

Returns

TokenType | undefined

On this page