mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 12:20:02 -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
|
(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
|
||||||
([
|
([
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue