HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Moduleskylighting-format-typst-0.1Haskell2010

Skylighting.Format.Typst

  • 3 values

Formats tokens as Typst using custom commands inside | characters. Assumes that | is defined as a short verbatim command by the macros produced by styleToTypst. A KeywordTok is rendered using \KeywordTok{..}, and so on.

valuestyleToTypst :: Style -> Text
#

Converts a Style to a set of Typst macro definitions, which should be placed in the document's preamble.