@@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 Copyright : Copyright (C) 2008-2014 John MacFarlane
21 Copyright : Copyright (C) 2008-2014 John MacFarlane
22 License : GNU GPL, version 2 or above
22 License : GNU GPL, version 2 or above
24− Maintainer : John MacFarlane <jgm@berkeley.edu>
24+ Maintainer : Clare Macrae <clare.macrae@googlemail.com>
25 Stability : alpha
25 Stability : alpha
26 Portability : portable
26 Portability : portable
@@ -126,7 +126,9 @@ blockToDokuWiki _ (RawBlock f str)
126blockToDokuWiki _ HorizontalRule = return "\n----\n"
126blockToDokuWiki _ HorizontalRule = return "\n----\n"
128blockToDokuWiki opts (Header level _ inlines) = do
128blockToDokuWiki opts (Header level _ inlines) = do
129+ -- emphasis, links etc. not allowed in headers, apparently,
130+ -- so we remove formatting:
129− contents <- inlineListToDokuWiki opts inlines
131+ contents <- inlineListToDokuWiki opts $ removeFormatting inlines
130 let eqs = replicate ( 7 - level ) '='
132 let eqs = replicate ( 7 - level ) '='
131 return $ eqs ++ " " ++ contents ++ " " ++ eqs ++ "\n"
133 return $ eqs ++ " " ++ contents ++ " " ++ eqs ++ "\n"