liffiton / dokuwiki-plugin-mathjax

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

Headers break when {alignment*} is used #19

Closed hugo-ballester closed 10 years ago

hugo-ballester commented 10 years ago

(I am using MathJax plugin, Date: 2014-07-22, on Dokuwiki Release 2013-05-10 "Weatherwax")

This alignment blog breaks the headers below, if they are followed by further display equations:

$$
\begin{align*}
D_{i} & := a
\end{align*}
$$
==This header displays as text, it is broken==
Broken example because align block above and equation below:
$$ x = \int y$$

Note that if there are no further display equations it works fine:

$$
\begin{align*}
D_{i} & := a
\end{align*}
$$
==This header displays fine==
This works
liffiton commented 10 years ago

The align* environment does not need to be in $$ delimiters. Remove those around the align* environment, and it should work fine.

See the documentation. Also reported in #14 and #8. Let me know if you see a better way to avoid this confusion in the future. Thanks!

hugo-ballester commented 10 years ago

thanks a lot,

perhaps it would be better to change in the documentation of https://www.dokuwiki.org/plugin:mathjax#display_math the sentence:

Note that the math environments do not need to be inside the dollar sign delimiters; the environments can stand on their own with just the \begin and \end statements and be parsed correctly.

to

Note that the math environments* should not* be inside the dollar sign delimiters; the environments should stand on their own with the \begin and \end statements in order to be parsed correctly.

On 8 November 2014 19:42, Mark Liffiton notifications@github.com wrote:

The align* environment does not need to be in $$ delimiters. Remove those around the align* environment, and it should work fine.

See the documentation https://www.dokuwiki.org/plugin:mathjax#display_math. Also reported in

14 https://github.com/liffiton/dokuwiki-plugin-mathjax/issues/14 and #8

https://github.com/liffiton/dokuwiki-plugin-mathjax/issues/8. Let me know if you see a better way to avoid this confusion in the future. Thanks!

— Reply to this email directly or view it on GitHub https://github.com/liffiton/dokuwiki-plugin-mathjax/issues/19#issuecomment-62270370 .

liffiton commented 10 years ago

Good suggestion. Thanks!