| Copyright | Copyright (C) 2006-2024 John MacFarlane |
|---|---|
| License | GNU GPL, version 2 or above |
| Maintainer | John MacFarlane <jgm@berkeley.edu> |
| Stability | alpha |
| Portability | portable |
| Safe Haskell | None |
| Language | Haskell2010 |
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
- writeNative :: PandocMonad m => WriterOptions -> Pandoc -> m Text
Documentation
writeNative :: PandocMonad m => WriterOptions -> Pandoc -> m Text Source #
Prettyprint Pandoc document.