epwalsh / obsidian.nvim

Obsidian 🤝 Neovim
Apache License 2.0
3.79k stars 167 forks source link

Adding LaTex equations for markdown #547

Open m-ruiz21 opened 4 months ago

m-ruiz21 commented 4 months ago

🚀 The feature, motivation and pitch

I love the simplicity of markdown, but, as an engineer, I need to be able to have equations written down for my personal class / project notes.

I know it's bit of a challenge to do in vim, but it would absolutely complete the plugin for me.

image

Alternatives

No response

Additional context

No response

anandkumar89 commented 4 months ago

If you want to write fast: you can use snippets (ultisnip, luasnip) to quickly write latex. Most of snippets will only expand inside the $$ sign. You'll need a way to recognise that (I use vimtex.- a plugin for writing latex, and there are other options using tree sitter).

If you want latex in more readable format - again, I know that vimtex allows you to conceal lots of commands in latex.

I don't know if any markdown based plugin natively supports recognising math zones (so that snippets can be written) and concealing.

It'd certainly be a welcome feature, even for general markdown community. But until then, alternatives exist as I described.