git.iko.soy/typeable/pandoc
on master help sign in
DokuWiki writer: Span no longer swallows text
0c6f06bClare Macrae
src/Text/Pandoc/Writers/DokuWiki.hs+2−6
@@ -31,7 +31,6 @@ DokuWiki: <https://www.dokuwiki.org/dokuwiki>
31-}
31-}
32
32
33{-
33{-
34− [ ] Correct handling of Span
35 [ ] Implement nested blockquotes (currently only ever does one level)
34 [ ] Implement nested blockquotes (currently only ever does one level)
36 [ ] Implement alignment of text in tables
35 [ ] Implement alignment of text in tables
37 [ ] Implement comments
36 [ ] Implement comments
@@ -348,12 +347,9 @@ inlineListToDokuWiki opts lst = mapM (inlineToDokuWiki opts) lst >>= return . co
348-- | Convert Pandoc inline element to DokuWiki.
347-- | Convert Pandoc inline element to DokuWiki.
349inlineToDokuWiki :: WriterOptions -> Inline -> State WriterState String
348inlineToDokuWiki :: WriterOptions -> Inline -> State WriterState String
350
349
351−inlineToDokuWiki _opts (Span _attrs _ils) = do
350+inlineToDokuWiki opts (Span _attrs ils) = do
352− return ""
353− {-
354 contents <- inlineListToDokuWiki opts ils
351 contents <- inlineListToDokuWiki opts ils
355− return $ render Nothing (tagWithAttrs "span" attrs) ++ contents ++ "</span>"
352+ return contents
356− -}
357
353
358inlineToDokuWiki opts (Emph lst) = do
354inlineToDokuWiki opts (Emph lst) = do
359 contents <- inlineListToDokuWiki opts lst
355 contents <- inlineListToDokuWiki opts lst
tests/dokuwiki.inline_formatting.dokuwiki+1−1
@@ -2,7 +2,7 @@ Regular text //italics// **bold //bold italics//**.
2
2
3This is Small Caps, and this is <del>strikethrough</del>.
3This is Small Caps, and this is <del>strikethrough</del>.
4
4
5−Some people use .
5+Some people use single underlines for //emphasis//.
6
6
7Above the line is <sup>superscript</sup> and below the line is <sub>subscript</sub>.
7Above the line is <sup>superscript</sup> and below the line is <sub>subscript</sub>.
8
8