edluffy / hologram.nvim

👻 A cross platform terminal image viewer for Neovim. Extensible and fast, written in Lua and C. Works on macOS and Linux.
MIT License
1.28k stars 31 forks source link

[Feature] Wikilinks suppor #39

Open Feel-ix-343 opened 1 year ago

Feel-ix-343 commented 1 year ago

I use obsidian, and like my images like ![[this.png]]

Feel-ix-343 commented 1 year ago

I would suggest using treesitter for parsing, not regex

Feel-ix-343 commented 1 year ago

Maybe over here? https://github.com/edluffy/hologram.nvim/blob/f5194f71ec1578d91b2e3119ff08e574e2eab542/lua/hologram/init.lua#L96

boltlessengineer commented 1 year ago

tree-sitter parser for markdown doesn't support obsidian style image syntax yet. So this could be solved after markdown parser gets obsidian style image support.