pandoc
CopyrightCopyright (C) 2006-2024 John MacFarlane
LicenseGNU GPL, version 2 or above
MaintainerJohn MacFarlane <jgm@berkeley.edu>
Stabilityalpha
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Text.Pandoc.Writers.Native

Description

Conversion of a Pandoc document to a string representation.

This used to be implemented using pretty-show's ppDoc (which shows the document, tokenizes and parses the result, and lays it out with Text.PrettyPrint.HughesPJ). For performance, we now build the layout directly from the AST, carefully reproducing the exact output of the old implementation (with ribbonsPerLine = 1.2).

Synopsis

Documentation

writeNative :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #

Prettyprint Pandoc document.