mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 19:30:02 -04:00
fix(markdown): revert bullet conceals due to spacing issues (#5742)
This commit is contained in:
parent
8f16c39f5b
commit
e9acd01a4a
1 changed files with 21 additions and 17 deletions
|
|
@ -34,23 +34,27 @@
|
||||||
(info_string (language) @conceal
|
(info_string (language) @conceal
|
||||||
(#set! conceal "")))
|
(#set! conceal "")))
|
||||||
|
|
||||||
;; Conceal bullet points
|
; NOTE: The following has been commented out due to issues with spaces in the
|
||||||
([(list_marker_plus) (list_marker_star)]
|
; list marker nodes generated by the parser. If those spaces ever get captured
|
||||||
@punctuation.special
|
; by a different node (e.g. block_continuation) we can safely readd these
|
||||||
(#offset! @punctuation.special 0 0 0 -1)
|
; conceals.
|
||||||
(#set! conceal "•"))
|
; ;; Conceal bullet points
|
||||||
([(list_marker_plus) (list_marker_star)]
|
; ([(list_marker_plus) (list_marker_star)]
|
||||||
@punctuation.special
|
; @punctuation.special
|
||||||
(#any-of? @punctuation.special "+" "*")
|
; (#offset! @punctuation.special 0 0 0 -1)
|
||||||
(#set! conceal "•"))
|
; (#set! conceal "•"))
|
||||||
((list_marker_minus)
|
; ([(list_marker_plus) (list_marker_star)]
|
||||||
@punctuation.special
|
; @punctuation.special
|
||||||
(#offset! @punctuation.special 0 0 0 -1)
|
; (#any-of? @punctuation.special "+" "*")
|
||||||
(#set! conceal "—"))
|
; (#set! conceal "•"))
|
||||||
((list_marker_minus)
|
; ((list_marker_minus)
|
||||||
@punctuation.special
|
; @punctuation.special
|
||||||
(#eq? @punctuation.special "-")
|
; (#offset! @punctuation.special 0 0 0 -1)
|
||||||
(#set! conceal "—"))
|
; (#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