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:
Riley Bruins 2023-11-18 17:20:51 -08:00 committed by GitHub
parent f9999888eb
commit f2de95e30a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,6 +34,24 @@
(info_string (language) @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
[