git.iko.soy/typeable/pandoc
on master help sign in
Implemented horizontal rule for dokuwiki (#386)
660fb24Clare Macrae
src/Text/Pandoc/Writers/DokuWiki.hs+1−1
@@ -108,7 +108,7 @@ blockToDokuWiki _ (RawBlock "mediawiki" str) = return str
108blockToDokuWiki _ (RawBlock "html" str) = return str
108blockToDokuWiki _ (RawBlock "html" str) = return str
109blockToDokuWiki _ (RawBlock _ _) = return ""
109blockToDokuWiki _ (RawBlock _ _) = return ""
110
110
111−blockToDokuWiki _ HorizontalRule = return "\n-----\n"
111+blockToDokuWiki _ HorizontalRule = return "\n----\n"
112
112
113blockToDokuWiki opts (Header level _ inlines) = do
113blockToDokuWiki opts (Header level _ inlines) = do
114 contents <- inlineListToDokuWiki opts inlines
114 contents <- inlineListToDokuWiki opts inlines
tests/writer.dokuwiki+13−13
@@ -1,7 +1,7 @@
1This is a set of tests for pandoc. Most of them are adapted from John Gruber’s markdown test suite.
1This is a set of tests for pandoc. Most of them are adapted from John Gruber’s markdown test suite.
2
2
3
3
4−-----
4+----
5
5
6====== Headers ======
6====== Headers ======
7
7
@@ -26,7 +26,7 @@ with no blank line
26with no blank line
26with no blank line
27
27
28
28
29−-----
29+----
30
30
31====== Paragraphs ======
31====== Paragraphs ======
32
32
@@ -39,7 +39,7 @@ Here’s one with a bullet. * criminey.
39There should be a hard line break<br />here.
39There should be a hard line break<br />here.
40
40
41
41
42−-----
42+----
43
43
44====== Block Quotes ======
44====== Block Quotes ======
45
45
@@ -68,7 +68,7 @@ This should not be a block quote: 2 &gt; 1.
68And a following paragraph.
68And a following paragraph.
69
69
70
70
71−-----
71+----
72
72
73====== Code Blocks ======
73====== Code Blocks ======
74
74
@@ -87,7 +87,7 @@ And:
87
87
88These should not be escaped: \$ \\ \&gt; \[ \{</pre>
88These should not be escaped: \$ \\ \&gt; \[ \{</pre>
89
89
90−-----
90+----
91
91
92====== Lists ======
92====== Lists ======
93
93
@@ -236,7 +236,7 @@ M.A. 2007
236B. Williams
236B. Williams
237
237
238
238
239−-----
239+----
240
240
241====== Definition Lists ======
241====== Definition Lists ======
242
242
@@ -414,7 +414,7 @@ Hr’s:
414<hr class="foo" id="bar">
414<hr class="foo" id="bar">
415
415
416
416
417−-----
417+----
418
418
419====== Inline Markup ======
419====== Inline Markup ======
420
420
@@ -443,7 +443,7 @@ Subscripts: H<sub>2</sub>O, H<sub>23</sub>O, H<sub>many of them</sub>O.
443These should not be superscripts or subscripts, because of the unescaped spaces: a^b c^d, a~b c~d.
443These should not be superscripts or subscripts, because of the unescaped spaces: a^b c^d, a~b c~d.
444
444
445
445
446−-----
446+----
447
447
448====== Smart quotes, ellipses, dashes ======
448====== Smart quotes, ellipses, dashes ======
449
449
@@ -464,7 +464,7 @@ Dashes between numbers: 5–7, 255–66, 1987–1999.
464Ellipses…and…and….
464Ellipses…and…and….
465
465
466
466
467−-----
467+----
468
468
469====== LaTeX ======
469====== LaTeX ======
470
470
@@ -488,7 +488,7 @@ Here’s a LaTeX table:
488
488
489
489
490
490
491−-----
491+----
492
492
493====== Special Characters ======
493====== Special Characters ======
494
494
@@ -543,7 +543,7 @@ Plus: +
543Minus: -
543Minus: -
544
544
545
545
546−-----
546+----
547
547
548====== Links ======
548====== Links ======
549
549
@@ -618,7 +618,7 @@ Auto-links should not occur here: <code>&lt;http://example.com/&gt;</code>
618
618
619<pre>or here: &lt;http://example.com/&gt;</pre>
619<pre>or here: &lt;http://example.com/&gt;</pre>
620
620
621−-----
621+----
622
622
623====== Images ======
623====== Images ======
624
624
@@ -629,7 +629,7 @@ From “Voyage dans la Lune” by Georges Melies (1902):
629Here is a movie [[Image:movie.jpg|movie]] icon.
629Here is a movie [[Image:movie.jpg|movie]] icon.
630
630
631
631
632−-----
632+----
633
633
634====== Footnotes ======
634====== Footnotes ======
635
635