Skip to content

CreateEditorClassLanguageOptions.tokenClassNodeProperty?

CreateEditorClassLanguageOptions › tokenClassNodeProperty?

Type: NodeProp<string>

A further node prop that carries a token node's classes, joined by spaces. Obsidian's editor renders a token's classes from the tokenClassNodeProp its copy of @codemirror/language adds, so a host there passes that prop.