-- 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 <tt>|</tt>
--   characters. Assumes that <tt>|</tt> is defined as a short verbatim
--   command by the macros produced by <a>styleToTypst</a>. A
--   <tt>KeywordTok</tt> is rendered using <tt>\KeywordTok{..}</tt>, and so
--   on.
formatTypstInline :: FormatOptions -> [SourceLine] -> Text

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

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