Markdown parses LaTeX math symbols as its formatting syntax in notebook #1275

Closed
joonro opened this Issue Jan 16, 2012 · 4 comments

Comments

Projects
None yet
4 participants
Contributor

joonro commented Jan 16, 2012

In notebook markdown cells in notebook, markdown's formatting syntax conflicts with LaTeX math symbols and one needs additional escaping to avoid this.

A couple of examples:

  1. ( ) and [ ] for inline and line math environments do not work; need to escape : \( \) and \[ \]
  2. The following does not work, as some part becomes italic:
    $$ \underline{x}_{1} x_{2} $$
    It works after escaping the first _:
    $$ \underline{x}\_{1} x_{2} $$

I found a discussion about this: http://doswa.com/2011/07/20/mathjax-in-markdown.html

@joonro joonro closed this Jan 18, 2012

@joonro joonro reopened this Jan 18, 2012

@joonro joonro closed this Jan 18, 2012

@joonro joonro reopened this Jan 18, 2012

Contributor

mwiebe commented Feb 26, 2012

I'm not sure if this needs a new ticket or not, but here's an example that breaks:

Given $\mathbf{x}_i$, we must solve for $\mathbf{x}_{i+1}$.

Markdown makes the middle part italic, completely screwing up the desired math.

Owner

Carreau commented Nov 22, 2012

Looked fixed to me.
Waiting for a confirmation and I will close.

Contributor

ahmadia commented Nov 23, 2012

The Markdown+MathJax issues were addressed in #2349 and #2517.

We now use

  • $,$ and \\(,\\) to delimit inlineMath
  • $$,$$ and \\[,\\] to delimit displayMath

We currently do not support \( or \[ style delimiters.

Additionally, you can can directly make \begin and \end calls without delimiters to the following environments through MathJaX processEnvironments:

align    
align*   
alignat 
alignat*
aligned 
alignedat
array

Bmatrix
bmatrix

cases

eqnarray
eqnarray*
equation
equation*

gather    
gather*   
gathered

matrix
multline  
multline*

pmatrix

smallmatrix
split           
subarray    

Vmatrix
vmatrix
Owner

Carreau commented Nov 23, 2012

Thank for the recap' .
Closing.

@Carreau Carreau closed this Nov 23, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment