Expand description
Syntax highlighting adapter for comrak’s plugin system. Syntax highlighting adapter for comrak.
Implements comrak’s SyntaxHighlighterAdapter trait using
syntect’s class-based generator. Output uses CSS class names
(<span class="…">) rather than inline style="…" attributes,
which means callers must ship a stylesheet — see theme_css
for generating one from any built-in theme.
Structs§
- Syntect
Adapter - A syntect-backed adapter for comrak’s rendering plugin system.
Constants§
- DEFAULT_
THEME - Default theme used when none is specified.
Functions§
- apply_
syntax_ highlighting - Highlights a code string with class-based spans (standalone API).
- theme_
css - Generates a CSS stylesheet for the named built-in theme.