diff options
| -rw-r--r-- | queries/markdown/highlights.scm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/queries/markdown/highlights.scm b/queries/markdown/highlights.scm index 23f1fb60f..085a1d827 100644 --- a/queries/markdown/highlights.scm +++ b/queries/markdown/highlights.scm @@ -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 [ |
