-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/

-- | Typst formatter for skylighting syntax highlighting library
--   
--   This module allows tokens produced by skylighting-core to be rendered
--   as Typst.
@package skylighting-format-typst
@version 0.1

module Skylighting.Format.Typst

-- | 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.
formatTypstInline :: FormatOptions -> [SourceLine] -> Text

-- | Format tokens as a Typst Highlighting environment inside a
--   Skylighting block that can be styled. Skylighting is defined
--   by the macros produced by styleToTypst.
formatTypstBlock :: FormatOptions -> [SourceLine] -> Text

-- | Converts a Style to a set of Typst macro definitions, which
--   should be placed in the document's preamble.
styleToTypst :: Style -> Text
