Markdown math support (Latex) #24224
Replies: 7 comments 1 reply
-
It seems like this would be very non-trivial to implement. Zed uses its own customer renderer so they'd have to make a LaTeX renderer that produces something like |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Just to give an idea of what this might look like (screenshot from the VS Code Markdown Preview extension). The markup:
Rendering: |
Beta Was this translation helpful? Give feedback.
-
codestral produce markdown math. Very hard to read in assistant panel: |
Beta Was this translation helpful? Give feedback.
-
This is definitely a neat idea, but as @ferntheplant probably non-trivial to implement given our custom renderer. I'd definitely be interested in seeing this in the markdown renderer, especially as we get more support for Jupyter notebooks that would benefit from this kind of thing. In order to keep track of this i'm going to convert this to a discussion because we've decided to move feature/enhancement requests there so it will be more likely someone from the team will see it there when looking for new features to add |
Beta Was this translation helpful? Give feedback.
-
As a temporary workaround that should be quicker to implement, how about triggering (on save or another key) markdown compilation externally (with markdown-it, which has good support for all sorts of features) and then launching a browser? If feasible, inserting an anchor point at cursor location and directing the browser to that anchor. This is a similar pipeline as in the TeX package so maybe it could be adapted. |
Beta Was this translation helpful? Give feedback.
-
@ferntheplant I played with something along these lines this week. The idea is to render MathML into a bitmap-like format currently already used by GPUI for SVGs, and then something like Temml (or something in rust) could generate the MathML. Zed already uses node for |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Check for existing issues
Describe the feature
Would be cool if markdown preview rendered math as well
If applicable, add mockups / screenshots to help present your vision of the feature
No response
Beta Was this translation helpful? Give feedback.
All reactions