Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
rossant opened this issue Dec 23, 2014 · 3 comments
Closed
Labels

Comments

@rossant
Copy link

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
Copy link

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

@lepture
Copy link
Owner

lepture commented May 28, 2015

@rossant @bollwyvl fixed this issue with 19a8c39

@lepture lepture mentioned this issue May 28, 2015
2 tasks
@lepture lepture closed this as completed May 28, 2015
@bollwyvl
Copy link

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
Labels
Projects
None yet
Development

No branches or pull requests

3 participants