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
(link_text) @nospell)
[
(backslash_escape)
(hard_line_break)
] @string.escape
; Conceal backslash in backslash escapes
((backslash_escape) @conceal
(#offset! @conceal 0 0 0 -1)
(#set! conceal ""))
; Conceal backslash in hard line breaks
((hard_line_break
"\\" @conceal)
(#set! conceal ""))
; Conceal codeblock and text style markers
([