aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn <46772462+KetzerX@users.noreply.github.com>2019-02-22 10:43:43 +0300
committerJohn MacFarlane <jgm@berkeley.edu>2019-02-22 00:43:43 -0700
commitc75b558cbc2d21cdc4f5fa243b5f900ca7e83bbc (patch)
treec2b378f1f2633f2f898010d2dcaefb8f8116e96b /test
parent69d433d37a2b50b2d07f588603a6fbc03041c0af (diff)
downloadpandoc-c75b558cbc2d21cdc4f5fa243b5f900ca7e83bbc.tar.gz
Add section identifiers support for FB2 writer (#5315)
Closes #5229.
Diffstat (limited to 'test')
-rw-r--r--test/fb2/basic.fb26
-rw-r--r--test/fb2/titles.fb22
-rw-r--r--test/writer.fb262
3 files changed, 35 insertions, 35 deletions
diff --git a/test/fb2/basic.fb2 b/test/fb2/basic.fb2
index df71e8456..dfea55b92 100644
--- a/test/fb2/basic.fb2
+++ b/test/fb2/basic.fb2
@@ -12,15 +12,15 @@
<title>
<p />
</title>
-<section>
+<section id="top-level-title">
<title>
<p>Top-level title</p>
</title>
-<section>
+<section id="section">
<title>
<p>Section</p>
</title>
-<section>
+<section id="subsection">
<title>
<p>Subsection</p>
</title>
diff --git a/test/fb2/titles.fb2 b/test/fb2/titles.fb2
index 4e56fb3e6..d7e585902 100644
--- a/test/fb2/titles.fb2
+++ b/test/fb2/titles.fb2
@@ -1,3 +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></title-info><document-info><program-used>pandoc</program-used></document-info></description><body><title><p /></title><section><title><p>Simple title</p></title><p>This example tests FictionBook titles.</p></section><section><title><p><emphasis>Emphasized</emphasis> <strong>Strong</strong> Title</p></title></section></body></FictionBook>
+<FictionBook xmlns="http://www.gribuser.ru/xml/fictionbook/2.0" xmlns:l="http://www.w3.org/1999/xlink"><description><title-info><genre>unrecognised</genre></title-info><document-info><program-used>pandoc</program-used></document-info></description><body><title><p /></title><section id="simple-title"><title><p>Simple title</p></title><p>This example tests FictionBook titles.</p></section><section id="emphasized-strong-title"><title><p><emphasis>Emphasized</emphasis> <strong>Strong</strong> Title</p></title></section></body></FictionBook>
diff --git a/test/writer.fb2 b/test/writer.fb2
index 6940e6217..6f5b1cfcd 100644
--- a/test/writer.fb2
+++ b/test/writer.fb2
@@ -26,25 +26,25 @@
John Gruber’s markdown test suite.</p>
<empty-line />
</section>
-<section>
+<section id="headers">
<title>
<p>Headers</p>
</title>
-<section>
+<section id="level-2-with-an-embedded-link">
<title>
<p>Level 2 with an <a l:href="/url">embedded link</a>
</p>
</title>
-<section>
+<section id="level-3-with-emphasis">
<title>
<p>Level 3 with <emphasis>emphasis</emphasis>
</p>
</title>
-<section>
+<section id="level-4">
<title>
<p>Level 4</p>
</title>
-<section>
+<section id="level-5">
<title>
<p>Level 5</p>
</title>
@@ -53,23 +53,23 @@ John Gruber’s markdown test suite.</p>
</section>
</section>
</section>
-<section>
+<section id="level-1">
<title>
<p>Level 1</p>
</title>
-<section>
+<section id="level-2-with-emphasis">
<title>
<p>Level 2 with <emphasis>emphasis</emphasis>
</p>
</title>
-<section>
+<section id="level-3">
<title>
<p>Level 3</p>
</title>
<p>with no blank line</p>
</section>
</section>
-<section>
+<section id="level-2">
<title>
<p>Level 2</p>
</title>
@@ -77,7 +77,7 @@ John Gruber’s markdown test suite.</p>
<empty-line />
</section>
</section>
-<section>
+<section id="paragraphs">
<title>
<p>Paragraphs</p>
</title>
@@ -93,7 +93,7 @@ list item.</p>
here.</p>
<empty-line />
</section>
-<section>
+<section id="block-quotes">
<title>
<p>Block Quotes</p>
</title>
@@ -131,7 +131,7 @@ It is pretty short.</p>
<p>And a following paragraph.</p>
<empty-line />
</section>
-<section>
+<section id="code-blocks">
<title>
<p>Code Blocks</p>
</title>
@@ -176,11 +176,11 @@ It is pretty short.</p>
<empty-line />
<empty-line />
</section>
-<section>
+<section id="lists">
<title>
<p>Lists</p>
</title>
-<section>
+<section id="unordered">
<title>
<p>Unordered</p>
</title>
@@ -218,7 +218,7 @@ It is pretty short.</p>
<p>• Minus 3</p>
<empty-line />
</section>
-<section>
+<section id="ordered">
<title>
<p>Ordered</p>
</title>
@@ -255,7 +255,7 @@ back.</p>
<p>3. Item 3.</p>
<empty-line />
</section>
-<section>
+<section id="nested">
<title>
<p>Nested</p>
</title>
@@ -280,7 +280,7 @@ back.</p>
<p>3. Third</p>
<empty-line />
</section>
-<section>
+<section id="tabs-and-spaces">
<title>
<p>Tabs and spaces</p>
</title>
@@ -297,7 +297,7 @@ indented with tabs</p>
indented with spaces</p>
<empty-line />
</section>
-<section>
+<section id="fancy-list-markers">
<title>
<p>Fancy list markers</p>
</title>
@@ -326,7 +326,7 @@ starting with 4</p>
<empty-line />
</section>
</section>
-<section>
+<section id="definition-lists">
<title>
<p>Definition Lists</p>
</title>
@@ -440,7 +440,7 @@ crisp, pleasant to taste</p>
<p>1. sublist</p>
<p>2. sublist</p>
</section>
-<section>
+<section id="html-blocks">
<title>
<p>HTML Blocks</p>
</title>
@@ -484,7 +484,7 @@ crisp, pleasant to taste</p>
<p>Hr’s:</p>
<empty-line />
</section>
-<section>
+<section id="inline-markup">
<title>
<p>Inline Markup</p>
</title>
@@ -521,7 +521,7 @@ crisp, pleasant to taste</p>
because of the unescaped spaces: a^b c^d, a~b c~d.</p>
<empty-line />
</section>
-<section>
+<section id="smart-quotes-ellipses-dashes">
<title>
<p>Smart quotes, ellipses, dashes</p>
</title>
@@ -537,7 +537,7 @@ So is ‘pine.’</p>
<p>Ellipses…and…and….</p>
<empty-line />
</section>
-<section>
+<section id="latex">
<title>
<p>LaTeX</p>
</title>
@@ -564,7 +564,7 @@ So is ‘pine.’</p>
<p>Here’s a LaTeX table:</p>
<empty-line />
</section>
-<section>
+<section id="special-characters">
<title>
<p>Special Characters</p>
</title>
@@ -597,11 +597,11 @@ So is ‘pine.’</p>
<p>Minus: -</p>
<empty-line />
</section>
-<section>
+<section id="links">
<title>
<p>Links</p>
</title>
-<section>
+<section id="explicit">
<title>
<p>Explicit</p>
</title>
@@ -627,7 +627,7 @@ So is ‘pine.’</p>
<p>
<a l:href="">Empty</a>.</p>
</section>
-<section>
+<section id="reference">
<title>
<p>Reference</p>
</title>
@@ -647,7 +647,7 @@ So is ‘pine.’</p>
<p>Foo <a l:href="/url/">bar</a>.</p>
<p>Foo <a l:href="/url/">biz</a>.</p>
</section>
-<section>
+<section id="with-ampersands">
<title>
<p>With ampersands</p>
</title>
@@ -656,7 +656,7 @@ So is ‘pine.’</p>
<p>Here’s an <a l:href="/script?foo=1&amp;bar=2">inline link</a>.</p>
<p>Here’s an <a l:href="/script?foo=1&amp;bar=2">inline link in pointy braces</a>.</p>
</section>
-<section>
+<section id="autolinks">
<title>
<p>Autolinks</p>
</title>
@@ -682,7 +682,7 @@ So is ‘pine.’</p>
<empty-line />
</section>
</section>
-<section>
+<section id="images">
<title>
<p>Images</p>
</title>
@@ -691,7 +691,7 @@ So is ‘pine.’</p>
<p>Here is a movie <image l:href="#image2" l:type="inlineImageType" alt="movie" /> icon.</p>
<empty-line />
</section>
-<section>
+<section id="footnotes">
<title>
<p>Footnotes</p>
</title>