John MacFarlane
dd1ac8f48f
Writers.Shared.gridTable: defensive coding around 'maximum'.
2017-03-23 14:33:49 +01:00
John MacFarlane
daf8d1db18
RST writer: improve grid table output, fix bug with empty rows.
...
Uses the new gridTable in Writers.Shared, which is here
improved to better handle 0-width cells.
Closes #3516 .
2017-03-21 14:16:46 +01:00
John MacFarlane
e6cdf21fa5
Moved more gridTable calculations to Writers.Shared.
2017-03-21 10:16:11 +01:00
John MacFarlane
e7336b1feb
Moved gridTable from Markdown writer to Writers.Shared.
2017-03-21 10:02:30 +01:00
John MacFarlane
e256c8ce17
Stylish-haskell automatic formatting changes.
2017-03-04 13:03:41 +01:00
John MacFarlane
5a47f3422a
Fixed type sig for older GHC versions.
2017-02-25 23:56:32 +01:00
John MacFarlane
124551461c
Fixed addVariablesToJSON.
...
It was previously not allowing multiple values to become lists.
2017-02-25 23:42:56 +01:00
John MacFarlane
9ab30c6495
Writers.Shared: export metaToJSON', addVariablesToJSON.
...
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-25 23:13:23 +01:00
John MacFarlane
03941ca9b0
Writers.Shared: Changed metaToJSON a bit.
...
Now we handle metadata first, then variables.
This way, meta-json variable will not contain representations of
variables, only proper metadata.
2017-02-25 22:59:16 +01:00
John MacFarlane
5f2f2efe32
Removed redundant import.
2017-02-05 11:54:05 +01:00
John MacFarlane
8418c1a7d7
Implemented +/-smart in rst writer.
...
Moved unsmartify to Writers.Shared.
2017-02-04 12:52:08 +01:00
John MacFarlane
fb8a2540bd
Options: Removed writerStandalone, made writerTemplate a Maybe.
...
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-11-30 15:34:58 +01:00
Jesse Rosenthal
2c62f0e122
Writers: treat SoftBreak as space for stripping
...
In Writers.Shared, we strip leading and trailing spaces for display
math. Since SoftBreak's are treated as spaces, we should strip those
too.
2016-07-01 00:52:52 -04:00
John MacFarlane
4361dc0245
Define a meta-json
variable for all writers.
...
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-23 20:40:27 -08:00
John MacFarlane
23b693c029
Revert "Use -XNoImplicitPrelude and 'import Prelude' explicitly."
...
This reverts commit c423dbb5a3
.
2015-11-09 10:08:22 -08:00
John MacFarlane
c423dbb5a3
Use -XNoImplicitPrelude and 'import Prelude' explicitly.
...
This is needed for ghci to work with pandoc, given that we
now use a custom prelude.
Closes #2503 .
2015-11-08 16:56:59 -08:00
John MacFarlane
1868cb5e42
Updated copyright notices to -2015. Closes #2111 .
2015-04-26 10:18:29 -07:00
Albert Krewinkel
8fdbef841d
Update copyright notices for 2014, add missing notices
2014-05-09 00:46:08 +02:00
John MacFarlane
e3d48da627
Moved fixDisplayMath from Docx writer to Writer.Shared.
2014-01-02 15:22:50 -08:00
Henry de Valence
c35f5ba42d
HLint: Remove lambdas.
2013-12-19 20:28:53 -05:00
John MacFarlane
ac7714ca39
Text.Pandoc.Writer.Shared: fixed bug in tagWithAttrs.
...
A space was omitted before key-value attributes, leading
to invalid HTML.
2013-10-26 18:22:59 -07:00
John MacFarlane
8d441af3da
Adjusted writers and tests for change in parsing of div/span.
...
Textile, MediaWiki, Markdown, Org, RST will emit raw HTML div tags for divs.
Otherwise Div and Span are "transparent" block containers.
2013-08-18 14:36:40 -07:00
John MacFarlane
7d18770b00
Added support for MetaBool.
2013-08-06 23:31:16 -07:00
John MacFarlane
7f83d88a65
Added Text.Pandoc.Writers.Shared to repository.
...
This should have been in last commit.
2013-07-01 20:49:22 -07:00