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

Math is not rendering for me (using Flask-Misaka) #71

Closed
E-Wagner opened this issue Jul 29, 2019 · 5 comments
Closed

Math is not rendering for me (using Flask-Misaka) #71

E-Wagner opened this issue Jul 29, 2019 · 5 comments

Comments

@E-Wagner
Copy link

E-Wagner commented Jul 29, 2019

I'm creating a blog that requires mathematics notation. The following won't render the latex notation into mathematics notation:

import misaka
with open('./misaka/sampletext.md', 'r') as f:
        content=f.read()  

html = misaka.html(content, extensions = misaka.EXT_MATH)
print(html)

(indentation is correct, github isn't showing it correctly.)
Can you help me to get this to work?
Thank you for your time

@FSX
Copy link
Owner

FSX commented Jul 29, 2019

Misaka doesn't actually render LaTeX to math symbols.

You need MathJax or KaTeX for that.

@E-Wagner
Copy link
Author

@FSX, thanks frank, you can close it. I got it to work with MathJax 💃

@FSX
Copy link
Owner

FSX commented Jul 29, 2019

np 👍

@FSX FSX closed this as completed Jul 29, 2019
@noisytoken
Copy link

@FSX so what's the point of EXT_MATH and EXT_MATH_EXPLICIT extensions?

@FSX
Copy link
Owner

FSX commented Nov 29, 2019

Anything between $…$, $$…$$, \(…\), and \[…\] is not interpreted as Markdown.

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

3 participants