summaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Writers/Shared.hs
Commit message (Collapse)AuthorAge
* Pipe tables: impose minimum cell size.John MacFarlane2017-03-23
| | | | | This might help with #3526. At any rate, it fixes another bug (see test/command/3526.md).
* Grid tables: remove unnecessary extra space in cells.John MacFarlane2017-03-23
|
* Writers.Shared.gridTable: defensive coding around 'maximum'.John MacFarlane2017-03-23
|
* RST writer: improve grid table output, fix bug with empty rows.John MacFarlane2017-03-21
| | | | | | | Uses the new gridTable in Writers.Shared, which is here improved to better handle 0-width cells. Closes #3516.
* Moved more gridTable calculations to Writers.Shared.John MacFarlane2017-03-21
|
* Moved gridTable from Markdown writer to Writers.Shared.John MacFarlane2017-03-21
|
* Stylish-haskell automatic formatting changes.John MacFarlane2017-03-04
|
* Fixed type sig for older GHC versions.John MacFarlane2017-02-25
|
* Fixed addVariablesToJSON.John MacFarlane2017-02-25
| | | | It was previously not allowing multiple values to become lists.
* Writers.Shared: export metaToJSON', addVariablesToJSON.John MacFarlane2017-02-25
| | | | | | | | | | 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
* Writers.Shared: Changed metaToJSON a bit.John MacFarlane2017-02-25
| | | | | | Now we handle metadata first, then variables. This way, meta-json variable will not contain representations of variables, only proper metadata.
* Removed redundant import.John MacFarlane2017-02-05
|
* Implemented +/-smart in rst writer.John MacFarlane2017-02-04
| | | | Moved unsmartify to Writers.Shared.
* Options: Removed writerStandalone, made writerTemplate a Maybe.John MacFarlane2016-11-30
| | | | | | | | 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]
* Writers: treat SoftBreak as space for strippingJesse Rosenthal2016-07-01
| | | | | | In Writers.Shared, we strip leading and trailing spaces for display math. Since SoftBreak's are treated as spaces, we should strip those too.
* Define a `meta-json` variable for all writers.John MacFarlane2015-11-23
| | | | | | | | | | | | | 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.
* 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.
* Updated copyright notices to -2015. Closes #2111.John MacFarlane2015-04-26
|
* Update copyright notices for 2014, add missing noticesAlbert Krewinkel2014-05-09
|
* Moved fixDisplayMath from Docx writer to Writer.Shared.John MacFarlane2014-01-02
|
* HLint: Remove lambdas.Henry de Valence2013-12-19
|
* Text.Pandoc.Writer.Shared: fixed bug in tagWithAttrs.John MacFarlane2013-10-26
| | | | | A space was omitted before key-value attributes, leading to invalid HTML.
* Adjusted writers and tests for change in parsing of div/span.John MacFarlane2013-08-18
| | | | | Textile, MediaWiki, Markdown, Org, RST will emit raw HTML div tags for divs. Otherwise Div and Span are "transparent" block containers.
* Added support for MetaBool.John MacFarlane2013-08-06
|
* Added Text.Pandoc.Writers.Shared to repository.John MacFarlane2013-07-01
This should have been in last commit.