Commit graph

5 commits

Author SHA1 Message Date
Christian Clason
24d5be6e71 feat(markdown): add latex injections
added in https://github.com/MDeiml/tree-sitter-markdown/pull/71
2023-02-05 08:29:45 -08:00
Christian Clason
7e4a7c4508 markdown: add strikethrough and blockquote captures 2023-01-14 11:52:25 +01:00
Josef Litoš
46cace42fa highlights(markdown_inline): added ')' to links 2023-01-04 12:17:33 +01:00
Ben Weedon
cea9c5941d Conceal reference and shortcut links in markdown
This change conceals `full_reference_link`, `collapsed_reference_link`,
and `shortcut_link` similarly to the `markdown_inline` query file
already conceals `inline_link` and `image`.

 ## Test markdown contents

```markdown
Some text before the link [full reference link text][link label] and now some
text after the link onto a new line.

Some text before the link [collapsed reference link text][] and now some text
after the link onto a new line.

Some text before the link [shortcut link text] and now some text after the link
onto a new line.
```

 ## Test markdown concealed screenshot

Closes #3267
2022-08-11 14:36:44 -07:00
Matthias Deiml
002084b1be
feat(markdown)!: switch to split parser (#3048)
* switch to split markdown parser with separate block and inline parsers to improve performance
* add exclude_children! directive (useful for something like Injected markdown incorrectly highlights indented docstrings #2212)
* split markdown queries into block and inline ones and add the injection for inline into block grammar
* add include_dir option to parser configs (needed because the two grammars don't live in the repos root directory)

BREAKING CHANGE: downstream queries need to be adapted to new parser
2022-06-26 18:02:29 +02:00