mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -04:00
Conceal markdown links
This commit is contained in:
parent
d4ca4eb234
commit
778bfc337a
1 changed files with 22 additions and 0 deletions
|
|
@ -88,3 +88,25 @@
|
||||||
(inline_link
|
(inline_link
|
||||||
"[" @conceal
|
"[" @conceal
|
||||||
(#set! conceal ""))
|
(#set! conceal ""))
|
||||||
|
|
||||||
|
;; Conceal @text.uri preceding '('
|
||||||
|
([
|
||||||
|
(link_label)
|
||||||
|
(link_text)
|
||||||
|
(image_description)
|
||||||
|
] ["("] @conceal
|
||||||
|
(#set! conceal ""))
|
||||||
|
|
||||||
|
;; Conceal @text.uri text
|
||||||
|
([
|
||||||
|
(link_destination)
|
||||||
|
(uri_autolink)
|
||||||
|
] @conceal
|
||||||
|
(#set! conceal ""))
|
||||||
|
|
||||||
|
;; Conceal @text.uri proceding '('
|
||||||
|
([
|
||||||
|
(link_destination)
|
||||||
|
(uri_autolink)
|
||||||
|
] [")"] @conceal
|
||||||
|
(#set! conceal ""))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue