summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/Native.hs
Commit message (Collapse)AuthorAge
* Implemented SoftBreak and new `--wrap` option.John MacFarlane2015-12-11
| | | | | | | | | | | | | | | | 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.
* Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly."John MacFarlane2015-11-09
| | | | This reverts commit c423dbb5a34c2d1195020e0f0ca3aae883d0749b.
* Use -XNoImplicitPrelude and 'import Prelude' explicitly.John MacFarlane2015-11-08
| | | | | | | This is needed for ghci to work with pandoc, given that we now use a custom prelude. Closes #2503.
* Native writer: format Div properly, with blocks separated.John MacFarlane2015-10-11
|
* Updated copyright notices to -2015. Closes #2111.John MacFarlane2015-04-26
|
* Update copyright notices for 2014, add missing noticesAlbert Krewinkel2014-05-09
|
* Some test suite fixes for new metadata.John MacFarlane2013-06-25
|
* Use new flexible metadata type.John MacFarlane2013-06-24
| | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Moved WriterOptions and associated types Shared -> Options.John MacFarlane2012-07-26
|
* Fixed whitespace errors.John MacFarlane2012-07-26
|
* Make sure native output ends in newline with --standalone.John MacFarlane2011-01-21
|
* Haddock comment improvements.John MacFarlane2011-01-21
|
* Native writer: eliminated empty spaces in brackets.John MacFarlane2011-01-20
|
* Improved native writer using Pretty.John MacFarlane2011-01-20
| | | | 2-3X speed improvement and more consistent layout.
* Made writeNative sensitive to writerStandalone.John MacFarlane2011-01-19
| | | | The Pandoc (Meta ...) is not written unless standalone is set.
* Moved Pandoc prettyprinting code from Shared to new Native writer.John MacFarlane2010-07-05
+ Text.Pandoc.Writers.Native + The function prettyPandoc is now gone. Use writeNative instead.