feat(markdown): conceal backslash in escapes

This commit is contained in:
Christian Clason 2026-07-01 10:07:31 +02:00 committed by Christian Clason
parent 61efd016eb
commit 35aa36a65b

View file

@ -10,10 +10,15 @@
(shortcut_link (shortcut_link
(link_text) @nospell) (link_text) @nospell)
[ ; Conceal backslash in backslash escapes
(backslash_escape) ((backslash_escape) @conceal
(hard_line_break) (#offset! @conceal 0 0 0 -1)
] @string.escape (#set! conceal ""))
; Conceal backslash in hard line breaks
((hard_line_break
"\\" @conceal)
(#set! conceal ""))
; Conceal codeblock and text style markers ; Conceal codeblock and text style markers
([ ([