OXY2DEV / markview.nvim

An experimental markdown previewer for Neovim
Apache License 2.0
1.21k stars 34 forks source link

Viability of supporting orgmode #106

Closed snoblenet closed 3 weeks ago

snoblenet commented 1 month ago

Very cool indeed.

I'm wondering whether it would be viable to support other markup languages that have Treesitter grammars and similar types of entities.

In particular, I'm wondering whether it would be viable to support Orgmode.

OXY2DEV commented 1 month ago

The problem is that tree-sitter won't recognize nodes the same way.

Screenshot_2024-08-14-09-25-36-080_com termux-edit Screenshot_2024-08-14-09-26-01-334_com termux-edit

Same text, completely different syntax.

So, you have to make a new parser function for org-mode.

Of course, it's not impossible. It's just that it takes a while to do(more so because I have used org-mode only once)

OXY2DEV commented 4 weeks ago

After messing around a bit I have noticed a few issues.

Mainly,

snoblenet commented 3 weeks ago

Thanks for looking into it. I've been looking at myself. Orgmode has built-in export-to-HTML functionality, so it's probably simpler for me to piggyback on that with a plugin-free solution.