fix(markdown): revert bullet conceals due to spacing issues (#5742)

This commit is contained in:
Riley Bruins 2023-11-29 16:36:07 -08:00 committed by GitHub
parent 8f16c39f5b
commit e9acd01a4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,23 +34,27 @@
(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 "—"))
; NOTE: The following has been commented out due to issues with spaces in the
; list marker nodes generated by the parser. If those spaces ever get captured
; by a different node (e.g. block_continuation) we can safely readd these
; conceals.
; ;; 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