LaTeX equation should not be parsed when it is enclosed in span tags #38

Closed
rossant opened this Issue Dec 23, 2014 · 3 comments

Comments

Projects
None yet
3 participants
@rossant

rossant commented Dec 23, 2014

import mistune

md = mistune.Markdown(parse_html=False)
print(md.render('''

<div>$$x_y x_{y}$$</div>

<span>$$x_y x_{y}$$</span>

'''))

# Prints:
# <div>$$x_y x_{y}$$</div>
# <p><span>$$x<em>y x</em>{y}$$</span></p>

The LaTeX equation is parsed when it is in the span, not when it is in the div. I think it should not be parsed since it is within HTML tags.

@lepture lepture added the bug label Mar 10, 2015

@bollwyvl

This comment has been minimized.

Show comment
Hide comment
@bollwyvl

bollwyvl May 27, 2015

Other example of embedded html breaking things: appears to be the issue on jupyter/nbviewer#458

Other example of embedded html breaking things: appears to be the issue on jupyter/nbviewer#458

@lepture

This comment has been minimized.

Show comment
Hide comment
@lepture

lepture May 28, 2015

Owner

@rossant @bollwyvl fixed this issue with 19a8c39

Owner

lepture commented May 28, 2015

@rossant @bollwyvl fixed this issue with 19a8c39

@lepture lepture referenced this issue May 28, 2015

Closed

Version 0.6 #50

2 of 2 tasks complete

@lepture lepture closed this May 28, 2015

@bollwyvl

This comment has been minimized.

Show comment
Hide comment
@bollwyvl

bollwyvl May 28, 2015

Fantastic! I'll take a look at it in nbviewer downstream, and report back.
These pesky angle brackets!

On 00:01, Thu, May 28, 2015 Hsiaoming Yang notifications@github.com wrote:

Closed #38 #38.


Reply to this email directly or view it on GitHub
#38 (comment).

Fantastic! I'll take a look at it in nbviewer downstream, and report back.
These pesky angle brackets!

On 00:01, Thu, May 28, 2015 Hsiaoming Yang notifications@github.com wrote:

Closed #38 #38.


Reply to this email directly or view it on GitHub
#38 (comment).

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