-
Notifications
You must be signed in to change notification settings - Fork 15
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
Support of Mathjax/Latex #11
Comments
Great suggestion ! I will definitely look into this. I'd prefer to use an offline library for conversion, I'll have to do some research... |
the excalidraw in obsidian developer has also implemented the latex feature in excalidraw you may also even ask him for suggestions. |
- embed MathJax as SVG - embed MathJax as bitmap - added styling: .math-inline, .math-block closes #11
@Gaaruda, I could not use the same approach as with Excalidraw, since the MathJax is rendered as HTML elements, not SVG. So I did my own rendering and replace the MathJax HTML nodes. Some issues:
Since you're asking someone who doing this in his free time to hurry, feel free to test the above branch and provide feedback 😉 The |
How can Test this plugin, as I am unable to see a main.js file. |
I assumed you knew how to compile a plugin since you have one in your repositories. I pushed a commit with the |
The implementation works, but adds 2MB to the plugin because it includes the entire MathJax lib and its fonts, which is kind of redundant because Obsidian should already have them. If anyone can come up with a better implementation, I'd be glad to merge it :) |
The plugin you made is almost perfect but just this issue that it can parse latex properly.
What I would Like is that it converts latex to image, just like the way you are dealing with excalidraw images.
there are many websites out there which deals with that is coverting latex to image.
Thanks For your Plugin.
And Please support this feature, as early as possible.
The text was updated successfully, but these errors were encountered: