aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/Native.hs
AgeCommit message (Collapse)AuthorFilesLines
2015-12-11Implemented SoftBreak and new `--wrap` option.John MacFarlane1-2/+2
Added threefold wrapping option. * Command line option: deprecated `--no-wrap`, added `--wrap=[auto|none|preserve]` * Added WrapOption, exported from Text.Pandoc.Options * Changed type of writerWrapText in WriterOptions from Bool to WrapOption. * Modified Text.Pandoc.Shared functions for SoftBreak. * Supported SoftBreak in writers. * Updated tests. * Updated README. Closes #1701.
2015-11-09Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly."John MacFarlane1-1/+0
This reverts commit c423dbb5a34c2d1195020e0f0ca3aae883d0749b.
2015-11-08Use -XNoImplicitPrelude and 'import Prelude' explicitly.John MacFarlane1-0/+1
This is needed for ghci to work with pandoc, given that we now use a custom prelude. Closes #2503.
2015-10-11Native writer: format Div properly, with blocks separated.John MacFarlane1-0/+2
2015-04-26Updated copyright notices to -2015. Closes #2111.John MacFarlane1-2/+2
2014-05-09Update copyright notices for 2014, add missing noticesAlbert Krewinkel1-2/+2
2013-06-25Some test suite fixes for new metadata.John MacFarlane1-1/+1
2013-06-24Use new flexible metadata type.John MacFarlane1-2/+2
* Depend on pandoc 1.12. * Added yaml dependency. * `Text.Pandoc.XML`: Removed `stripTags`. (API change.) * `Text.Pandoc.Shared`: Added `metaToJSON`. This will be used in writers to create a JSON object for use in the templates from the pandoc metadata. * Revised readers and writers to use the new Meta type. * `Text.Pandoc.Options`: Added `Ext_yaml_title_block`. * Markdown reader: Added support for YAML metadata block. Note that it must come at the beginning of the document. * `Text.Pandoc.Parsing.ParserState`: Replace `stateTitle`, `stateAuthors`, `stateDate` with `stateMeta`. * RST reader: Improved metadata. Treat initial field list as metadata when standalone specified. Previously ALL fields "title", "author", "date" in field lists were treated as metadata, even if not at the beginning. Use `subtitle` metadata field for subtitle. * `Text.Pandoc.Templates`: Export `renderTemplate'` that takes a string instead of a compiled template.. * OPML template: Use 'for' loop for authors. * Org template: '#+TITLE:' is inserted before the title. Previously the writer did this.
2012-07-26Moved WriterOptions and associated types Shared -> Options.John MacFarlane1-1/+1
2012-07-26Fixed whitespace errors.John MacFarlane1-4/+4
2011-01-21Make sure native output ends in newline with --standalone.John MacFarlane1-1/+1
2011-01-21Haddock comment improvements.John MacFarlane1-1/+5
2011-01-20Native writer: eliminated empty spaces in brackets.John MacFarlane1-2/+3
2011-01-20Improved native writer using Pretty.John MacFarlane1-48/+32
2-3X speed improvement and more consistent layout.
2011-01-19Made writeNative sensitive to writerStandalone.John MacFarlane1-4/+7
The Pandoc (Meta ...) is not written unless standalone is set.
2010-07-05Moved Pandoc prettyprinting code from Shared to new Native writer.John MacFarlane1-0/+86
+ Text.Pandoc.Writers.Native + The function prettyPandoc is now gone. Use writeNative instead.