liffiton / dokuwiki-plugin-mathjax

MathJax plugin for DokuWiki
https://www.dokuwiki.org/plugin:mathjax
12 stars 11 forks source link

Multiple mathjax in one page seems to cause a problem #8

Closed ghost closed 11 years ago

ghost commented 11 years ago

Hello,

I've created the following page and for some reason the parser of dokuwiki doesn't seems to interpret the third header after using a mathjax expression.

EDIT: For some reason, Github is not displaying "newline" (double backslash) properly. Thanks.

My page:

====== Codage, langage machine, instructions ======

Base 10: 1, 10, 100, 1000, .. \ Base 2: 1, 2, 4, 6, 8, 16, ..

====== Convertir un décimal à un binaire ======

$$ \begin{align} 19 {10} &\geq 16, \text{ oui } = 1 \text{ , il reste } 3 \ 3 {10} &\geq 8, \text{ non } = 0\text{ , il reste } 3 \ 3 {10} &\geq 4, \text{ non } = 0\text{ , il reste } 3 \ 3 {10} &\geq 2, \text{ oui } = 1\text{ , il reste } 1 \ 1 {10} &\geq 1, \text{ oui } = 1\text{ , il reste } 0 \ 19 {10} &= 10011 _ {2} \end{align} $$

====== Convertir un binaire à un hexadécimal ======

$$ \begin{align} & 0010 \space 0011 \ & 2 \space\space\space\space\space\space\space 3 \ & 23 _ {16} \end{align} $$

liffiton commented 11 years ago

The align environment can stand on its own; it doesn't need to be inside the $$ delimiters:

====== Convertir ... ======

\begin{align}
  math...
\end{align}

====== Convertir ... ======

With that change, it works fine for me. The extra delimiters were basically "confusing" the part of the plugin that protects math expressions from being parsed by Dokuwiki.

ghost commented 11 years ago

Cool ! Thanks. ;-)