diff options
| author | Maria José Solano <majosolano99@gmail.com> | 2023-09-17 14:13:50 -0700 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2023-09-17 23:16:53 +0200 |
| commit | eb0f975bf29dd6bbb58011ed0e694874a50ae79e (patch) | |
| tree | 07d9bfdd65f95b86073b8daa384127d2b2b15cad /queries/markdown_inline | |
| parent | Update README (diff) | |
| download | nvim-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_inline')
| -rw-r--r-- | queries/markdown_inline/highlights.scm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/queries/markdown_inline/highlights.scm b/queries/markdown_inline/highlights.scm index cd5da530d..f9589bdd9 100644 --- a/queries/markdown_inline/highlights.scm +++ b/queries/markdown_inline/highlights.scm @@ -92,3 +92,11 @@ "]" ] @conceal (#set! conceal "")) + +;; Replace common HTML entities. +((entity_reference) @conceal (#eq? @conceal " ") (#set! conceal "")) +((entity_reference) @conceal (#eq? @conceal "<") (#set! conceal "<")) +((entity_reference) @conceal (#eq? @conceal ">") (#set! conceal ">")) +((entity_reference) @conceal (#eq? @conceal "&") (#set! conceal "&")) +((entity_reference) @conceal (#eq? @conceal """) (#set! conceal "\"")) +((entity_reference) @conceal (#any-of? @conceal " " " ") (#set! conceal " "))
\ No newline at end of file |
