mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 17:30:08 -04:00
feat(markdown): conceals for bullets, block quotes
* feat(markdown): conceals for bullets, block quotes * fix: remove conceals for block quotes, change list minus to em dash * fix(markdown): allow empty bullets to be concealed
This commit is contained in:
parent
f9999888eb
commit
f2de95e30a
1 changed files with 18 additions and 0 deletions
|
|
@ -34,6 +34,24 @@
|
||||||
(info_string (language) @conceal
|
(info_string (language) @conceal
|
||||||
(#set! conceal "")))
|
(#set! conceal "")))
|
||||||
|
|
||||||
|
;; Conceal bullet points
|
||||||
|
([(list_marker_plus) (list_marker_star)]
|
||||||
|
@punctuation.special
|
||||||
|
(#offset! @punctuation.special 0 0 0 -1)
|
||||||
|
(#set! conceal "•"))
|
||||||
|
([(list_marker_plus) (list_marker_star)]
|
||||||
|
@punctuation.special
|
||||||
|
(#any-of? @punctuation.special "+" "*")
|
||||||
|
(#set! conceal "•"))
|
||||||
|
((list_marker_minus)
|
||||||
|
@punctuation.special
|
||||||
|
(#offset! @punctuation.special 0 0 0 -1)
|
||||||
|
(#set! conceal "—"))
|
||||||
|
((list_marker_minus)
|
||||||
|
@punctuation.special
|
||||||
|
(#eq? @punctuation.special "-")
|
||||||
|
(#set! conceal "—"))
|
||||||
|
|
||||||
(code_fence_content) @none
|
(code_fence_content) @none
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue