Skip to content
This repository has been archived by the owner on Nov 24, 2020. It is now read-only.

misunderstand underscore #3

Closed
ghost opened this issue Jun 9, 2014 · 2 comments
Closed

misunderstand underscore #3

ghost opened this issue Jun 9, 2014 · 2 comments

Comments

@ghost
Copy link

ghost commented Jun 9, 2014

code:

$\begin{aligned}
\max & c \cdot x
\\\\
s.t. & A_{m_1 \cdot n} \cdot x \le b
\\\\
& Aeq_{m_2 \cdot n} \cdot x = beq
\\\\
& x_i \ge 0
\end{aligned}$

and the result is like this:

<p>$\begin{aligned}
\max &amp; c \cdot x
\\
s.t. &amp; A<em>{m_1 \cdot n} \cdot x \le b
\\
&amp; Aeq</em>{m_2 \cdot n} \cdot x = beq
\\
&amp; x_i \ge 0
\end{aligned}$</p>

when the Aeq line is removed the em tag disappears and everything is normal.

@pkra
Copy link

pkra commented Jul 14, 2014

That's a typical side-effect of mixing markdown with TeX-like input. The best way to work around this is to replace math content with placeholders before markdown conversion happens and place it back at the placeholders afterwards. If the markdown converter tolerates inline HTML well (e.g., no forced line-breaks), then pre-processing into MathML (e.g., using MathJax-node) before the markdown conversion should also do the trick.

@pkra pkra mentioned this issue Jul 30, 2014
@SamyPesse
Copy link
Member

With the last version of gitbook (0.7.0), it's now fixed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants