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

math in HTML export broken #48

Open
fbreuer opened this issue Oct 7, 2011 · 2 comments
Open

math in HTML export broken #48

fbreuer opened this issue Oct 7, 2011 · 2 comments

Comments

@fbreuer
Copy link
Owner

fbreuer commented Oct 7, 2011

E.g. "<" is exported as "<" which MathJax does not process properly.

This is caused by running first MathJax and then Showdown on the document.

I do not think I will fix this before the 0.4 release.

@ubuntuslave
Copy link

Hi, Felix. I just discovered Qute, and tried it out on Mac OS X 10.8. It seems that exporting to html with Mathjax is adding extra tags so when displayed on the browser, it shows duplicate equations. One non-formated, and the other one formated properly. I know I could just manually delete the unformatted

block, but I was wondering if there is a fix or I'm doing something wrong. Here is a screenshot of the markdown content:

Trying a math equation: $$E = m \cdot c^2$$

Here is a screenshot of what's being published:

screen shot 2013-10-02 at 11 11 10 am

Here is what the html code reads like:

 <html><head><script type='text/javascript' src='http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script></head><body>
<p>Trying a math equation: <span style="display: none;" class="MathJax_Preview"></span></p><div style="font-size: 100%;" class="MathJax_MathML"><math display="block"><mi>E</mi><mo stretchy="false">=</mo><mi>m</mi><mo stretchy="false">⋅</mo><msup><mi>c</mi><mn>2</mn></msup></math></div><script id="MathJax-Element-8" type="math/tex; mode=display">E = m \cdot c^2</script><p></p>

</body></html>

@fbreuer
Copy link
Owner Author

fbreuer commented Oct 17, 2013

Yes, MathJax is not officially intended to be used like that. The current HTML export via MathJax is sort of a hack. Currently, the best way to export to HTML is to use Pandoc - from the command line if necessary.

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

No branches or pull requests

2 participants