liffiton / dokuwiki-plugin-mathjax

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

Problem: Subtitle not recognized after MathJax #14

Closed StarPicard closed 9 years ago

StarPicard commented 9 years ago

When i create a new Subtitle in an article after entering a MathJax Code the Subtitle is not recognized by Dokuwiki.

Example:

====== Lorem ipsum ======
===== Lorem ipsum =====
==== Lorem ipsum ====
Lorem ipsum $f(x) = -2x^3 + x^2 - 2x + 5$\\
Lorem ipsum: $\lim\limits_{x\to\infty} f(x) = \lim\limits_{x\to\infty} -2x^3 + x^2 - 2x + 5$
Lorem ipsum:
$$\begin{align}
\lim\limits_{x\to\infty} f(x) & = \lim\limits_{x\to\infty} -2\color{red}{x^3} + x^2 - 2x + 5\\
& \approx \lim\limits_{x\to\infty} - 2\color{red}{x^3}\\
& = -\infty
\end{align}$$ -

==== Lorem ipsum ====
Lorem ipsum $\lim\limits_{x\to-\infty} f(x) = \lim\limits_{x\to-\infty} -2x^3 + x^2 - 2x + 5$\\
Lorem ipsum:
$$\begin{align}
\lim\limits_{x\to-\infty} f(x) & = \lim\limits_{x\to-\infty} -2\color{red}{x^3} + x^2 - 2x + 5\\
& \approx \lim\limits_{x\to-\infty} - 2\color{red}{x^3}\\
& = -*(-\infty)\\
& = \infty
\end{align}$$ $

===== Lorem ipsum =====
Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsum
$$\begin{align}
f(x) & = \frac{3x+2}{x}\\
& = \frac{3\color{red}{x}}{\color{red}{x}} + \frac{2}{x}\\
\lim\limits_{x\to\infty} & = 3 + \frac{2}{x} & \frac{2}{\infty} \Rightarrow \color{blue}{0}\\
\lim\limits_{x\to\infty} & = 3 + \color{blue}{0}\\
\lim\limits_{x\to\infty} & = 3
\end{align}$$

===== Lorem ipsum =====
StarPicard commented 9 years ago

Sorry for that: -> https://github.com/liffiton/dokuwiki-plugin-mathjax/issues/8

liffiton commented 9 years ago

No problem. It prompted me to update the documentation page to try to clarify how environments can be used, so that was helpful.