feat(lsp): use treesitter for stylize markdown

This commit is contained in:
Maria José Solano
2023-09-12 20:51:21 -07:00
committed by Lewis Russell
parent c5abf487f1
commit cfd4a9dfaf
7 changed files with 162 additions and 75 deletions

View File

@@ -92,3 +92,11 @@
"]"
] @conceal
(#set! conceal ""))
;; Replace common HTML entities.
((entity_reference) @conceal (#eq? @conceal " ") (#set! conceal ""))
((entity_reference) @conceal (#eq? @conceal "&lt;") (#set! conceal "<"))
((entity_reference) @conceal (#eq? @conceal "&gt;") (#set! conceal ">"))
((entity_reference) @conceal (#eq? @conceal "&amp;") (#set! conceal "&"))
((entity_reference) @conceal (#eq? @conceal "&quot;") (#set! conceal "\""))
((entity_reference) @conceal (#any-of? @conceal "&ensp;" "&emsp;") (#set! conceal " "))