oknozor / illumination

A mardown renderer for nvim written with gtkrs and neovim-lib
GNU General Public License v3.0
84 stars 6 forks source link

Does It Support Showing Latex Equations? #20

Closed eeriemyxi closed 4 months ago

eeriemyxi commented 4 months ago

I was planning to use it for my mathematics notes, so I thought I'd ask. Also, is this project still maintained?

oknozor commented 4 months ago

Hey @eeriemyxi I am not maintaining this crate anymore.

Internally illumination use pulldown-cmark to render markdown. I am not sure latex is supported out of the box but if it is, implementing math support would be easy. You are welcome to submit a PR.

oknozor commented 4 months ago

https://github.com/pulldown-cmark/pulldown-cmark/releases/tag/v0.11.0

eeriemyxi commented 4 months ago

Thanks for the news.

eeriemyxi commented 4 months ago

Hi @oknozor, I tried compiling it and I am getting a bunch of errors after it compiled all the dependencies. I think the issue is with the compiler version. Do you happen to know which version is known to work? Mine is 1.75 (rustc).

oknozor commented 4 months ago

Hey, I just pushed a quick fix for the compilation and added mathjax to the webview dependencies (note that for now its pulled over http).

Below is an example of the rendered result. As you can see inline math doesn't work (no idea why).

image

eeriemyxi commented 4 months ago

Thanks for the update. I will try compiling it again in my free time later. I did some quick digging, and according to this, inline notation would work if you did the config init of Mathjax before loading it. Contrary to what you did here.