aboutsummaryrefslogtreecommitdiff
path: root/test/fb2/reader
diff options
context:
space:
mode:
authorAlexander Krotov <ilabdsf@gmail.com>2019-05-11 13:35:03 +0300
committerAlexander <ilabdsf@gmail.com>2019-05-11 12:10:20 +0000
commit5c7ad59ffe7c4e6aec62d16611ccb84a9ce02472 (patch)
tree7b9f534d80108f2b26e2bc84eb449c734720d8e9 /test/fb2/reader
parentc1d9cf7daf02b284907584960c8e73103416afd2 (diff)
downloadpandoc-5c7ad59ffe7c4e6aec62d16611ccb84a9ce02472.tar.gz
FB2 reader: add notes parsing test
Diffstat (limited to 'test/fb2/reader')
-rw-r--r--test/fb2/reader/notes.fb219
-rw-r--r--test/fb2/reader/notes.native4
2 files changed, 23 insertions, 0 deletions
diff --git a/test/fb2/reader/notes.fb2 b/test/fb2/reader/notes.fb2
new file mode 100644
index 000000000..263256933
--- /dev/null
+++ b/test/fb2/reader/notes.fb2
@@ -0,0 +1,19 @@
+<?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">
+ <body>
+ <section>
+ <p>Note <a l:href="#n1" type="note">1</a>.</p>
+ <p>Second note <a l:href="#n2" type="note">2</a>.</p>
+ </section>
+ </body>
+ <body name="notes">
+ <section id="n1">
+ <title><p>1</p></title>
+ <p>Note contents</p>
+ </section>
+ <section id="n2">
+ <title><p>2</p></title>
+ <p>Second note contents.</p>
+ </section>
+ </body>
+</FictionBook>
diff --git a/test/fb2/reader/notes.native b/test/fb2/reader/notes.native
new file mode 100644
index 000000000..f229209cd
--- /dev/null
+++ b/test/fb2/reader/notes.native
@@ -0,0 +1,4 @@
+Pandoc (Meta {unMeta = fromList []})
+[Div ("",["section"],[])
+ [Para [Str "Note",Space,Note [Para [Str "Note",Space,Str "contents"]],Str "."]
+ ,Para [Str "Second",Space,Str "note",Space,Note [Para [Str "Second",Space,Str "note",Space,Str "contents."]],Str "."]]]