DokuWiki writer: Retain unknown RawBlock and RawInline text

This added \cite and \begin latex to the testuite output.
This commit is contained in:
Clare Macrae 2014-07-02 21:40:12 +01:00
parent d234157d25
commit 61cc983bea
2 changed files with 8 additions and 4 deletions

View file

@ -124,7 +124,7 @@ blockToDokuWiki opts (Para inlines) = do
blockToDokuWiki _ (RawBlock f str)
| f == Format "mediawiki" = return str
| f == Format "html" = return $ "<html>\n" ++ str ++ "</html>"
| otherwise = return ""
| otherwise = return str
blockToDokuWiki _ HorizontalRule = return "\n----\n"
@ -409,7 +409,7 @@ inlineToDokuWiki _ (Math _ str) = return $ "<math>" ++ str ++ "</math>"
inlineToDokuWiki _ (RawInline f str)
| f == Format "mediawiki" = return str
| f == Format "html" = return str
| otherwise = return ""
| otherwise = return str
inlineToDokuWiki _ (LineBreak) = return "\\\\ "

View file

@ -424,7 +424,7 @@ Ellipses…and…and….
====== LaTeX ======
*
* \cite[22-23]{smith.1899}
* <math>2+2=4</math>
* <math>x \in y</math>
* <math>\alpha \wedge \omega</math>
@ -442,7 +442,11 @@ These shouldnt be math:
Heres a LaTeX table:
\begin{tabular}{|l|l|}\hline
Animal & Number \\ \hline
Dog & 2 \\
Cat & 1 \\ \hline
\end{tabular}
----