DokuWiki: write $..$ instead of <math>..</math>

MathJax seems currently to be the only maintained math rendering
extension for DokuWiki and it uses $..$ instead of <math>..</math>.
This commit is contained in:
Tiziano Müller 2015-07-13 14:19:45 +02:00
parent 2df3dfe883
commit f464e49142
2 changed files with 8 additions and 8 deletions

View file

@ -451,7 +451,7 @@ inlineToDokuWiki _ (Code _ str) =
inlineToDokuWiki _ (Str str) = return $ escapeString str
inlineToDokuWiki _ (Math _ str) = return $ "<math>" ++ str ++ "</math>"
inlineToDokuWiki _ (Math _ str) = return $ "$" ++ str ++ "$"
-- note: str should NOT be escaped
inlineToDokuWiki _ (RawInline f str)

View file

@ -454,13 +454,13 @@ Ellipses…and…and….
====== LaTeX ======
*
* <math>2+2=4</math>
* <math>x \in y</math>
* <math>\alpha \wedge \omega</math>
* <math>223</math>
* <math>p</math>-Tree
* Heres some display math: <math>\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}</math>
* Heres one that has a line break in it: <math>\alpha + \omega \times x^2</math>.
* $2+2=4$
* $x \in y$
* $\alpha \wedge \omega$
* $223$
* $p$-Tree
* Heres some display math: $\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$
* Heres one that has a line break in it: $\alpha + \omega \times x^2$.
These shouldnt be math: