tree-sitter-grammars / tree-sitter-markdown

Markdown grammar for tree-sitter
MIT License
411 stars 52 forks source link

Conceal angle brackets for links #100

Closed musjj closed 1 year ago

musjj commented 1 year ago

Angle brackets surrounding explicit links like:

<https://www.google.com>

Should be conceal-able

MDeiml commented 1 year ago

This should already be possible with the current state of the parser. The angle brackets are always the first and last character of the uri_autolink and email_autolink nodes. Are you using neovim? If so this probably requires writing some lua code, but I am not quite certain. I'd recommend opening an issue on https://github.com/nvim-treesitter/nvim-treesitter

musjj commented 1 year ago

I've realized that the concealing part is implemented within the neovim repo, thanks for the clarification.