Highlight

tcmts.content.Highlight · #inhaptve · type

Highlights a fenced code block: its code, in its language (the info string's first word), as HTML; undefined shows it as written.

export type Highlight = (code: string, lang: string) => string | undefined;

used by