aboutsummaryrefslogtreecommitdiffstats
path: root/queries/markdown
diff options
context:
space:
mode:
authorMaria José Solano <majosolano99@gmail.com>2023-09-17 14:13:50 -0700
committerChristian Clason <c.clason@uni-graz.at>2023-09-17 23:16:53 +0200
commiteb0f975bf29dd6bbb58011ed0e694874a50ae79e (patch)
tree07d9bfdd65f95b86073b8daa384127d2b2b15cad /queries/markdown
parentUpdate README (diff)
downloadnvim-treesitter-eb0f975bf29dd6bbb58011ed0e694874a50ae79e.tar
nvim-treesitter-eb0f975bf29dd6bbb58011ed0e694874a50ae79e.tar.gz
nvim-treesitter-eb0f975bf29dd6bbb58011ed0e694874a50ae79e.tar.bz2
nvim-treesitter-eb0f975bf29dd6bbb58011ed0e694874a50ae79e.tar.lz
nvim-treesitter-eb0f975bf29dd6bbb58011ed0e694874a50ae79e.tar.xz
nvim-treesitter-eb0f975bf29dd6bbb58011ed0e694874a50ae79e.tar.zst
nvim-treesitter-eb0f975bf29dd6bbb58011ed0e694874a50ae79e.zip
feat(markdown): conceal triple backticks and HTML entities
Diffstat (limited to 'queries/markdown')
-rw-r--r--queries/markdown/highlights.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/queries/markdown/highlights.scm b/queries/markdown/highlights.scm
index e78d233cc..6c10c0885 100644
--- a/queries/markdown/highlights.scm
+++ b/queries/markdown/highlights.scm
@@ -26,6 +26,14 @@
(fenced_code_block_delimiter)
] @punctuation.delimiter
+;; Conceal backticks
+(fenced_code_block
+ (fenced_code_block_delimiter) @conceal
+ (#set! conceal ""))
+(fenced_code_block
+ (info_string (language) @conceal
+ (#set! conceal "")))
+
(code_fence_content) @none
[