From 660fb244721a83985f097886178c5a38f6c8194e Mon Sep 17 00:00:00 2001 From: Clare Macrae Date: Sun, 14 Jul 2013 15:03:40 +0100 Subject: Implemented horizontal rule for dokuwiki (#386) --- src/Text/Pandoc/Writers/DokuWiki.hs | 2 +- tests/writer.dokuwiki | 26 +++++++++++++------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/Text/Pandoc/Writers/DokuWiki.hs b/src/Text/Pandoc/Writers/DokuWiki.hs index e9c0ecb02..0169e0931 100644 --- a/src/Text/Pandoc/Writers/DokuWiki.hs +++ b/src/Text/Pandoc/Writers/DokuWiki.hs @@ -108,7 +108,7 @@ blockToDokuWiki _ (RawBlock "mediawiki" str) = return str blockToDokuWiki _ (RawBlock "html" str) = return str blockToDokuWiki _ (RawBlock _ _) = return "" -blockToDokuWiki _ HorizontalRule = return "\n-----\n" +blockToDokuWiki _ HorizontalRule = return "\n----\n" blockToDokuWiki opts (Header level _ inlines) = do contents <- inlineListToDokuWiki opts inlines diff --git a/tests/writer.dokuwiki b/tests/writer.dokuwiki index 32f984ef9..0062de3b3 100644 --- a/tests/writer.dokuwiki +++ b/tests/writer.dokuwiki @@ -1,7 +1,7 @@ This is a set of tests for pandoc. Most of them are adapted from John Gruber’s markdown test suite. ------ +---- ====== Headers ====== @@ -26,7 +26,7 @@ with no blank line with no blank line ------ +---- ====== Paragraphs ====== @@ -39,7 +39,7 @@ Here’s one with a bullet. * criminey. There should be a hard line break
here. ------ +---- ====== Block Quotes ====== @@ -68,7 +68,7 @@ This should not be a block quote: 2 > 1. And a following paragraph. ------ +---- ====== Code Blocks ====== @@ -87,7 +87,7 @@ And: These should not be escaped: \$ \\ \> \[ \{ ------ +---- ====== Lists ====== @@ -236,7 +236,7 @@ M.A. 2007 B. Williams ------ +---- ====== Definition Lists ====== @@ -414,7 +414,7 @@ Hr’s:
------ +---- ====== Inline Markup ====== @@ -443,7 +443,7 @@ 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. ------ +---- ====== Smart quotes, ellipses, dashes ====== @@ -464,7 +464,7 @@ Dashes between numbers: 5–7, 255–66, 1987–1999. Ellipses…and…and…. ------ +---- ====== LaTeX ====== @@ -488,7 +488,7 @@ Here’s a LaTeX table: ------ +---- ====== Special Characters ====== @@ -543,7 +543,7 @@ Plus: + Minus: - ------ +---- ====== Links ====== @@ -618,7 +618,7 @@ Auto-links should not occur here: <http://example.com/>
or here: <http://example.com/>
------ +---- ====== Images ====== @@ -629,7 +629,7 @@ From “Voyage dans la Lune” by Georges Melies (1902): Here is a movie [[Image:movie.jpg|movie]] icon. ------ +---- ====== Footnotes ====== -- cgit v1.2.3