aboutsummaryrefslogtreecommitdiff
path: root/test/writer.rst
AgeCommit message (Collapse)AuthorFilesLines
2019-08-25Use new doctemplates, doclayout.John MacFarlane1-1/+0
+ Remove Text.Pandoc.Pretty; use doclayout instead. [API change] + Text.Pandoc.Writers.Shared: remove metaToJSON, metaToJSON' [API change]. + Text.Pandoc.Writers.Shared: modify `addVariablesToContext`, `defField`, `setField`, `getField`, `resetField` to work with Context rather than JSON values. [API change] + Text.Pandoc.Writers.Shared: export new function `endsWithPlain` [API change]. + Use new templates and doclayout in writers. + Use Doc-based templates in all writers. + Adjust three tests for minor template rendering differences. + Added indentation to body in docbook4, docbook5 templates. The main impact of this change is better reflowing of content interpolated into templates. Previously, interpolated variables were rendered independently and intepolated as strings, which could lead to overly long lines. Now the templates interpolated as Doc values which may include breaking spaces, and reflowing occurs after template interpolation rather than before.
2019-02-25Shared.compactify: Avoid mixed lists.John MacFarlane1-0/+1
This improves on the original fix to #5285 by preventing other mixed lists (lists with a mix of Plain and Para elements) that were allowed given the original fix.
2018-08-13RST writer: use `.. container` for generic Divs, instead of raw HTML.John MacFarlane1-68/+14
2018-04-26RST reader: flatten nested inlines, closes #4368 (#4554)Francesco Occhipinti1-7/+7
nested inlines are not valid RST syntax, so we flatten them following some readability criteria discussed in #4368.
2018-04-19RST writer: use more consistent indentation.John MacFarlane1-60/+60
Previously we used an odd mix of 3- and 4-space indentation. Now we use 3-space indentation, except for ordered lists, where indentation must depend on the width of the list marker. Closes #4563.
2018-02-08Updated rst writer test for template change.John MacFarlane1-4/+0
2017-10-16RST writer: don't backslash-escape word-internal punctuation.John MacFarlane1-1/+1
Closes #3978.
2017-05-25Added `spaced_reference_links` extension.John MacFarlane1-4/+0
This is now the default for pandoc's Markdown. It allows whitespace between the two parts of a reference link: e.g. [a] [b] [b]: url This is now forbidden by default. Closes #2602.
2017-05-19RST writer: add empty comments when needed...John MacFarlane1-0/+6
to avoid including a blocquote in the indented content of a preceding block. Closes #3675.
2017-02-04Moved tests/ -> test/.John MacFarlane1-0/+892