aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/Shared.hs
AgeCommit message (Collapse)AuthorFilesLines
2017-02-25Fixed type sig for older GHC versions.John MacFarlane1-1/+1
2017-02-25Fixed addVariablesToJSON.John MacFarlane1-2/+5
It was previously not allowing multiple values to become lists.
2017-02-25Writers.Shared: export metaToJSON', addVariablesToJSON.John MacFarlane1-10/+28
This allows us to add the variables AFTER using the metadata to generate a YAML header (in the Markdown writer). Addresses the problem shown by https://travis-ci.org/jgm/pandoc/jobs/205154181#L705 See #3439
2017-02-25Writers.Shared: Changed metaToJSON a bit.John MacFarlane1-4/+17
Now we handle metadata first, then variables. This way, meta-json variable will not contain representations of variables, only proper metadata.
2017-02-05Removed redundant import.John MacFarlane1-1/+0
2017-02-04Implemented +/-smart in rst writer.John MacFarlane1-0/+15
Moved unsmartify to Writers.Shared.
2016-11-30Options: Removed writerStandalone, made writerTemplate a Maybe.John MacFarlane1-1/+2
Previously setting writerStandalone = True did nothing unless a template was provided in writerTemplate. Now a fragment will be generated if writerTemplate is Nothing; otherwise, the specified template will be used and standalone output generated. [API change]
2016-07-01Writers: treat SoftBreak as space for strippingJesse Rosenthal1-0/+1
In Writers.Shared, we strip leading and trailing spaces for display math. Since SoftBreak's are treated as spaces, we should strip those too.
2015-11-23Define a `meta-json` variable for all writers.John MacFarlane1-2/+4
This contains a JSON version of all the metadata, in the format selected for the writer. So, for example, to get just the YAML metadata, you can run pandoc with the following custom template: $meta-json$ Closes #2019. The intent is to make it easier for static site generators and other tools to get at the metadata.
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-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
2014-01-02Moved fixDisplayMath from Docx writer to Writer.Shared.John MacFarlane1-0/+27
2013-12-19HLint: Remove lambdas.Henry de Valence1-2/+1
2013-10-26Text.Pandoc.Writer.Shared: fixed bug in tagWithAttrs.John MacFarlane1-3/+2
A space was omitted before key-value attributes, leading to invalid HTML.
2013-08-18Adjusted writers and tests for change in parsing of div/span.John MacFarlane1-0/+18
Textile, MediaWiki, Markdown, Org, RST will emit raw HTML div tags for divs. Otherwise Div and Span are "transparent" block containers.
2013-08-06Added support for MetaBool.John MacFarlane1-0/+1
2013-07-01Added Text.Pandoc.Writers.Shared to repository.John MacFarlane1-0/+121
This should have been in last commit.