Crate typst_ansi_hl

Crate typst_ansi_hl 

Source
Expand description

typst-ansi-hl highlights your Typst code using ANSI escape sequences.

let output = Highlighter::default()
    .for_discord()
    .with_soft_limit(2000)
    .highlight("This is _Typst_ #underline[code].");

Modules§

ext
Module with external dependencies exposed by this library.

Structs§

Highlighter

Enums§

Error
Any error returned by this library.
SyntaxMode
The kind of input syntax.