aboutsummaryrefslogtreecommitdiff
path: root/test/writer.custom
AgeCommit message (Collapse)AuthorFilesLines
2021-08-12Various sample.lua editorial fixes. (#7493)William Lupton1-8/+7
These address most of the items mentioned in #7487. There's also a table caption fix (the caption wasn't escaped).
2020-10-08Fix custom writer test.John MacFarlane1-2/+2
The custom writer is now less aggressive about escaping `"`.
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-1/+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-11-29Fix custom tests.John MacFarlane1-8/+8
2017-12-27Added tests for custom writer.John MacFarlane1-0/+783