aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-10-20 22:49:04 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-10-29 22:21:35 -0700
commit1fe97422630d4aa5644d55b0b3b41b0978b7fea0 (patch)
tree32477f9869a265d9a275651b2715b5991c6cbb4c /test
parent4d5fd9e2fe360e47fd5beab724c612ce29aa39ee (diff)
downloadpandoc-1fe97422630d4aa5644d55b0b3b41b0978b7fea0.tar.gz
Changes to build with new doctemplates/doclayout.
The new version of doctemplates adds many features to pandoc's templating system, while remaining backwards-compatible. New features include partials and filters. Using template filters, one can lay out data in enumerated lists and tables. Templates are now layout-sensitive: so, for example, if a text with soft line breaks is interpolated near the end of a line, the text will break and wrap naturally. This makes the templating system much more suitable for programatically generating markdown or other plain-text files from metadata.
Diffstat (limited to 'test')
-rw-r--r--test/Tests/Writers/RST.hs2
-rw-r--r--test/writer.textile1
2 files changed, 1 insertions, 2 deletions
diff --git a/test/Tests/Writers/RST.hs b/test/Tests/Writers/RST.hs
index abc9820af..8727b38be 100644
--- a/test/Tests/Writers/RST.hs
+++ b/test/Tests/Writers/RST.hs
@@ -24,7 +24,7 @@ testTemplate t = case runIdentity (compileTemplate [] (T.pack t)) of
Left e -> error $ "Could not compile RST template: " ++ e
Right templ -> test (purely (writeRST def{ writerTemplate = Just templ }) . toPandoc)
-bodyTemplate :: Template
+bodyTemplate :: Template T.Text
bodyTemplate = case runIdentity (compileTemplate [] "$body$\n") of
Left e -> error $
"Could not compile RST bodyTemplate" ++ e
diff --git a/test/writer.textile b/test/writer.textile
index 40a47b8f0..b184506b6 100644
--- a/test/writer.textile
+++ b/test/writer.textile
@@ -717,4 +717,3 @@ fn4. In quote.
fn5. In list.
-