mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -04:00
feat(markdown): conceal backslash in escapes
This commit is contained in:
parent
61efd016eb
commit
35aa36a65b
1 changed files with 9 additions and 4 deletions
|
|
@ -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
|
||||
([
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue