aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlexander Krotov <ilabdsf@gmail.com>2018-04-19 17:03:21 +0300
committerAlexander Krotov <ilabdsf@gmail.com>2018-04-19 17:03:21 +0300
commitcaeb963447440edb14a67bb02cb6c956232dce63 (patch)
tree20c8c373aa3b09912f722255d8f4efc935d89fb5 /test
parentce4326a4f12180844532febf93261f098cd6c5aa (diff)
downloadpandoc-caeb963447440edb14a67bb02cb6c956232dce63.tar.gz
FB2 writer: convert metadata value "abstract" to book annotation
Diffstat (limited to 'test')
-rw-r--r--test/Tests/Old.hs1
-rw-r--r--test/fb2/meta.fb23
-rw-r--r--test/fb2/meta.markdown7
3 files changed, 11 insertions, 0 deletions
diff --git a/test/Tests/Old.hs b/test/Tests/Old.hs
index f2b43640b..cfca576da 100644
--- a/test/Tests/Old.hs
+++ b/test/Tests/Old.hs
@@ -95,6 +95,7 @@ tests = [ testGroup "markdown"
, fb2WriterTest "images" [] "fb2/images.markdown" "fb2/images.fb2"
, fb2WriterTest "images-embedded" [] "fb2/images-embedded.html" "fb2/images-embedded.fb2"
, fb2WriterTest "math" [] "fb2/math.markdown" "fb2/math.fb2"
+ , fb2WriterTest "meta" [] "fb2/meta.markdown" "fb2/meta.fb2"
, fb2WriterTest "tables" [] "tables.native" "tables.fb2"
, fb2WriterTest "testsuite" [] "testsuite.native" "writer.fb2"
]
diff --git a/test/fb2/meta.fb2 b/test/fb2/meta.fb2
new file mode 100644
index 000000000..04bd5f3c5
--- /dev/null
+++ b/test/fb2/meta.fb2
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<FictionBook xmlns="http://www.gribuser.ru/xml/fictionbook/2.0" xmlns:l="http://www.w3.org/1999/xlink"><description><title-info><genre>unrecognised</genre><book-title>Book title</book-title><annotation><p>This is the abstract.</p>It consists of two paragraphs.</annotation></title-info><document-info><program-used>pandoc</program-used></document-info></description><body><title><p>Book title</p></title></body></FictionBook>
+
diff --git a/test/fb2/meta.markdown b/test/fb2/meta.markdown
new file mode 100644
index 000000000..5edad2981
--- /dev/null
+++ b/test/fb2/meta.markdown
@@ -0,0 +1,7 @@
+---
+title: Book title
+abstract: |
+ This is the abstract.
+
+ It consists of two paragraphs.
+---