Hoogle Search
Within LTS Haskell 24.49 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
formatFromFilePaths :: [FilePath] -> Maybe FlavoredFormatpandoc Text.Pandoc.Format Determines default format based on file extensions; uses the format of the first extension that's associated with a format. Examples:
formatFromFilePaths ["text.unknown", "no-extension"]
NothingformatFromFilePaths ["my.md", "other.rst"]
Just "markdown"formatName :: FlavoredFormat -> Textpandoc Text.Pandoc.Format No documentation available.
formatANSI :: FormatOptions -> Style -> [SourceLine] -> Textpandoc Text.Pandoc.Highlighting No documentation available.
formatConTeXtBlock :: FormatOptions -> [SourceLine] -> Textpandoc Text.Pandoc.Highlighting Format tokens as a ConTeXt highlighting typing environment. The highlighting environemnt is defined by the macros produced by styleToConTeXt; it is a typing environment with default escaping enabled, i.e., / is the escape character.
formatConTeXtInline :: FormatOptions -> [SourceLine] -> Textpandoc Text.Pandoc.Highlighting Formats tokens as ConTeXt using custom commands inside a type{}. A KeywordTok is rendered using \KeywordTok{..}, and so on.
formatHtml4Block :: FormatOptions -> [SourceLine] -> Htmlpandoc Text.Pandoc.Highlighting Like formatHtmlBlock but uses only attributes valid in HTML 4 (so, aria-hidden is not used in empty line number spans).
formatHtmlBlock :: FormatOptions -> [SourceLine] -> Htmlpandoc Text.Pandoc.Highlighting Format tokens as an HTML pre block. Each line is wrapped in an a element with the class ‘source-line’. If line numbering is selected, the surrounding pre is given the class ‘numberSource’, and the resulting html will display line numbers thanks to the included CSS. See the documentation for formatHtmlInline for information about how tokens are encoded.
formatHtmlInline :: FormatOptions -> [SourceLine] -> Htmlpandoc Text.Pandoc.Highlighting Format tokens using HTML spans inside code tags. For example, A KeywordTok is rendered as a span with class kw. Short class names correspond to TokenTypes as follows: KeywordTok = kw, DataTypeTok = dt, DecValTok = dv, BaseNTok = bn, FloatTok = fl, CharTok = ch, StringTok = st, CommentTok = co, OtherTok = ot, AlertTok = al, FunctionTok = fu, RegionMarkerTok = re, ErrorTok = er, ConstantTok = cn, SpecialCharTok = sc, VerbatimStringTok = vs, SpecialStringTok = ss, ImportTok = im, DocumentationTok = do, AnnotationTok = an, CommentVarTok = cv, VariableTok = va, ControlFlowTok = cf, OperatorTok = op, BuiltInTok = bu, ExtensionTok = ex, PreprocessorTok = pp, AttributeTok = at, InformationTok = in, WarningTok = wa. A NormalTok is not marked up at all.
formatLaTeXBlock :: FormatOptions -> [SourceLine] -> Textpandoc Text.Pandoc.Highlighting Format tokens as a LaTeX Highlighting environment inside a Shaded environment. Highlighting and Shaded are defined by the macros produced by styleToLaTeX. Highlighting is a verbatim environment using fancyvrb; \, {, and } have their normal meanings inside this environment, so that formatting commands work. Shaded is either nothing (if the style's background color is default) or a snugshade environment from framed, providing a background color for the whole code block, even if it spans multiple pages.
formatLaTeXInline :: FormatOptions -> [SourceLine] -> Textpandoc Text.Pandoc.Highlighting Formats tokens as LaTeX using custom commands inside | characters. Assumes that | is defined as a short verbatim command by the macros produced by styleToLaTeX. A KeywordTok is rendered using \KeywordTok{..}, and so on.