git.iko.soy/typeable/pandoc
on master help sign in
DokuWiki writer: Span no longer swallows text
commit0c6f06b8a493bf9bc578a0b882939bac130e16f0 authorClare Macrae <github@cfmacrae.fastmail.co.uk> dateWed 2 Jul 2014, 22:40 (12 years ago) parent7647d87
2 files changed+3−7
src/Text/Pandoc/Writers/DokuWiki.hs+2−6 tests/dokuwiki.inline_formatting.dokuwiki+1−1
src/Text/Pandoc/Writers/DokuWiki.hs+2−6
@@ -31,7 +31,6 @@ DokuWiki: <https://www.dokuwiki.org/dokuwiki>
3131-}
3232
3333{-
34− [ ] Correct handling of Span
3534 [ ] Implement nested blockquotes (currently only ever does one level)
3635 [ ] Implement alignment of text in tables
3736 [ ] Implement comments
@@ -348,12 +347,9 @@ inlineListToDokuWiki opts lst = mapM (inlineToDokuWiki opts) lst >>= return . co
348347-- | Convert Pandoc inline element to DokuWiki.
349348inlineToDokuWiki :: WriterOptions -> Inline -> State WriterState String
350349
351−inlineToDokuWiki _opts (Span _attrs _ils) = do
352− return ""
353− {-
350+inlineToDokuWiki opts (Span _attrs ils) = do
354351 contents <- inlineListToDokuWiki opts ils
355− return $ render Nothing (tagWithAttrs "span" attrs) ++ contents ++ "</span>"
356− -}
352+ return contents
357353
358354inlineToDokuWiki opts (Emph lst) = do
359355 contents <- inlineListToDokuWiki opts lst
tests/dokuwiki.inline_formatting.dokuwiki+1−1
@@ -2,7 +2,7 @@ Regular text //italics// **bold //bold italics//**.
22
33This is Small Caps, and this is <del>strikethrough</del>.
44
5−Some people use .
5+Some people use single underlines for //emphasis//.
66
77Above the line is <sup>superscript</sup> and below the line is <sub>subscript</sub>.
88