diff --git a/src/Text/Pandoc/Writers/FB2.hs b/src/Text/Pandoc/Writers/FB2.hs
index e1fa7f474..a46011a8f 100644
--- a/src/Text/Pandoc/Writers/FB2.hs
+++ b/src/Text/Pandoc/Writers/FB2.hs
@@ -365,10 +365,7 @@ blockToXml h@Header{} = do
-- should not occur after hierarchicalize, except inside lists/blockquotes
report $ BlockNotRendered h
return []
-blockToXml HorizontalRule = return
- [ el "empty-line" ()
- , el "p" (txt (replicate 10 '—'))
- , el "empty-line" () ]
+blockToXml HorizontalRule = return [ el "empty-line" () ]
blockToXml (Table caption aligns _ headers rows) = do
hd <- mkrow "th" headers aligns
bd <- mapM (\r -> mkrow "td" r aligns) rows
@@ -398,7 +395,7 @@ plainToPara [] = []
plainToPara (Plain inlines : rest) =
Para inlines : plainToPara rest
plainToPara (Para inlines : rest) =
- Para inlines : Plain [LineBreak] : plainToPara rest
+ Para inlines : HorizontalRule : plainToPara rest -- HorizontalRule will be converted to
Top-level title
Section
Subsection
This verbatim
markdown. See this link.
Ordered list:
1. one
2. two
3. three
Blockquote is for citatons.
Code
block
is
for
code.
Math is another Pandoc extension: E = m c^2
.
1
Sometimes.
Top-level title
+Section
+Subsection
+This verbatim
markdown.
+See this link.
Ordered list:
+1. one
+2. two
+3. three
+ +Blockquote +is +for +citatons.
+ +
+Code
+
+block
+
+is
+
+for
+
+code.
+
+
Math is another Pandoc extension: E = m c^2
.
1
+Sometimes.
+Simple table with caption:
Right | Left | Center | Default |
---|---|---|---|
12 | 12 | 12 | 12 |
123 | 123 | 123 | 123 |
1 | 1 | 1 | 1 |
Simple table without caption:
Right | Left | Center | Default |
---|---|---|---|
12 | 12 | 12 | 12 |
123 | 123 | 123 | 123 |
1 | 1 | 1 | 1 |
Simple table indented two spaces:
Right | Left | Center | Default |
---|---|---|---|
12 | 12 | 12 | 12 |
123 | 123 | 123 | 123 |
1 | 1 | 1 | 1 |
Multiline table with caption:
Centered Header | Left Aligned | Right Aligned | Default aligned |
---|---|---|---|
First | row | 12.0 | Example of a row that spans multiple lines. |
Second | row | 5.0 | Here’s another one. Note the blank line between rows. |
Multiline table without caption:
Centered Header | Left Aligned | Right Aligned | Default aligned |
---|---|---|---|
First | row | 12.0 | Example of a row that spans multiple lines. |
Second | row | 5.0 | Here’s another one. Note the blank line between rows. |
Table without column headers:
12 | 12 | 12 | 12 |
123 | 123 | 123 | 123 |
1 | 1 | 1 | 1 |
Multiline table without column headers:
First | row | 12.0 | Example of a row that spans multiple lines. |
Second | row | 5.0 | Here’s another one. Note the blank line between rows. |
Simple table with caption:
Right | Left | Center | Default |
---|---|---|---|
12 | 12 | 12 | 12 |
123 | 123 | 123 | 123 |
1 | 1 | 1 | 1 |
Simple table without caption:
Right | Left | Center | Default |
---|---|---|---|
12 | 12 | 12 | 12 |
123 | 123 | 123 | 123 |
1 | 1 | 1 | 1 |
Simple table indented two spaces:
Right | Left | Center | Default |
---|---|---|---|
12 | 12 | 12 | 12 |
123 | 123 | 123 | 123 |
1 | 1 | 1 | 1 |
Multiline table with caption:
Centered +Header | Left +Aligned | Right +Aligned | Default aligned |
---|---|---|---|
First | row | 12.0 | Example of a row that spans +multiple lines. |
Second | row | 5.0 | Here’s another one. Note +the blank line between rows. |
Multiline table without caption:
Centered +Header | Left +Aligned | Right +Aligned | Default aligned |
---|---|---|---|
First | row | 12.0 | Example of a row that spans +multiple lines. |
Second | row | 5.0 | Here’s another one. Note +the blank line between rows. |
Table without column headers:
12 | 12 | 12 | 12 |
123 | 123 | 123 | 123 |
1 | 1 | 1 | 1 |
Multiline table without column headers:
First | row | 12.0 | Example of a row that spans +multiple lines. |
Second | row | 5.0 | Here’s another one. Note +the blank line between rows. |
Pandoc Test Suite
This is a set of tests for pandoc. Most of them are adapted from John Gruber’s markdown test suite.
-——————————
+This is a set of tests for pandoc. Most of them are adapted from +John Gruber’s markdown test suite.
with no blank line
——————————
-Paragraphs
Here’s a regular paragraph.
-In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item. Because a hard-wrapped line in the middle of a paragraph looked like a list item.
-Here’s one with a bullet. * criminey.
-There should be a hard line break
——————————
+In Markdown 1.0.0 and earlier. Version +8. This line turns into a list item. +Because a hard-wrapped line in the +middle of a paragraph looked like a +list item.
+Here’s one with a bullet. +* criminey.
+There should be a hard line break +here.
E-mail style:
-This is a block quote. It is pretty short.
+This is a block quote. +It is pretty short.
Code in a block quote:
@@ -124,11 +126,10 @@nested
-This should not be a block quote: 2 > 1.
+This should not be a block quote: 2 +> 1.
And a following paragraph.
——————————
-——————————
-Multiple paragraphs:
1. Item 1, graf one.
Item 1. graf two. The quick brown fox jumped over the lazy dog’s back.
+Item 1. graf two. The quick brown fox jumped over the lazy dog’s +back.
2. Item 2.
Tabs and spaces
• this is a list item indented with tabs
+• this is a list item +indented with tabs
• this is a list item indented with spaces
+• this is a list item +indented with spaces
• • this is an example list item indented with tabs
+• • this is an example list item +indented with tabs
• • this is an example list item indented with spaces
+• • this is an example list item +indented with spaces
with a continuation
(3) iv. sublist with roman numerals, starting with 4
+(3) iv. sublist with roman numerals, +starting with 4
(3) v. more items
(3) v. (A) a subsublist
(3) v. (B) a subsublist
@@ -319,8 +324,6 @@M.A. 2007
B. Williams
——————————
-red fruit
contains seeds, crisp, pleasant to taste
+contains seeds, +crisp, pleasant to taste
@@ -479,8 +483,6 @@
Hr’s: ——————————
Subscripts: H2O, H23O, Hmany of themO.
-These should not be superscripts or subscripts, because of the unescaped spaces: a^b c^d, a~b c~d.
-——————————
+These should not be superscripts or subscripts, +because of the unescaped spaces: a^b c^d, a~b c~d.
“Hello,” said the spider. “‘Shelob’ is my name.”
‘A’, ‘B’, and ‘C’ are letters.
-‘Oak,’ ‘elm,’ and ‘beech’ are names of trees. So is ‘pine.’
-‘He said, “I want to go.”’ Were you alive in the 70’s?
+‘Oak,’ ‘elm,’ and ‘beech’ are names of trees. +So is ‘pine.’
+‘He said, “I want to go.”’ Were you alive in the +70’s?
Here is some quoted ‘code
’ and a “quoted link”.
Some dashes: one—two — three—four — five.
Dashes between numbers: 5–7, 255–66, 1987–1999.
Ellipses…and…and….
——————————
-• 223
• p
-Tree
• Here’s some display math: \frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}
+
• Here’s some display math:
+\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}
• Here’s one that has a line break in it: \alpha + \omega \times x^2
.
These shouldn’t be math:
• To get the famous equation, write $e = mc^2$
.
• $22,000 is a
• $22,000 is a
• Shoes ($20) and socks ($5).
• Escaped $
: $73
Here’s a LaTeX table:
——————————
-Plus: +
Minus: -
——————————
-——————————
-Here is a movie
——————————
-1
Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document.
+Here is the footnote. It can go anywhere after the footnote +reference. It need not be placed at the end of the document.
2
Here’s the long note. This one contains multiple blocks.
-Subsequent blocks are indented to show that they belong to the footnote (as with list items).
+Here’s the long note. This one contains multiple +blocks.
+Subsequent blocks are indented to show that they belong to the +footnote (as with list items).
{ <code> }
If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.
+If you want, you can indent every line, but you can also be +lazy and just indent the first line of each block.
3
This is ]
verbatim characters, as well as [bracketed text].
This
+is ]
verbatim characters,
+as well as [bracketed text].