diff options
| -rw-r--r-- | queries/markdown/highlights.scm | 8 | ||||
| -rw-r--r-- | queries/markdown/injections.scm | 5 |
2 files changed, 12 insertions, 1 deletions
diff --git a/queries/markdown/highlights.scm b/queries/markdown/highlights.scm index 914c34a44..70c35b395 100644 --- a/queries/markdown/highlights.scm +++ b/queries/markdown/highlights.scm @@ -19,6 +19,14 @@ (fenced_code_block) ] @text.literal +(pipe_table_header (pipe_table_cell) @text.title) +[ + (pipe_table_row) + (pipe_table_delimiter_row) + (pipe_table_header) +] "|" @punctuation.special +(pipe_table_delimiter_cell) @punctuation.special + [ (fenced_code_block_delimiter) ] @punctuation.delimiter diff --git a/queries/markdown/injections.scm b/queries/markdown/injections.scm index 465cccef8..2310ee42f 100644 --- a/queries/markdown/injections.scm +++ b/queries/markdown/injections.scm @@ -9,4 +9,7 @@ ((minus_metadata) @yaml (#offset! @yaml 1 0 -1 0)) ((plus_metadata) @toml (#offset! @toml 1 0 -1 0)) -((inline) @markdown_inline (#exclude_children! @markdown_inline)) +([ + (inline) + (pipe_table_cell) + ] @markdown_inline (#exclude_children! @markdown_inline)) |
