Andy Freeland
0d0949683d
Support TOML metadata in Markdown injections
...
Hugo, Zola, and likely other static site generators use `+++` for TOML,
not YAML.
2022-07-25 21:28:40 +02:00
kiyan
3bd228781b
fix: disable elm parser in markdown to avoid segfault
...
the Elm parser segfaults when injected in markdown. Disable it for now.
See https://github.com/elm-tooling/tree-sitter-elm/issues/124
2022-07-15 12:08:58 +02:00
MDeiml
f75e27c217
Use markdown metadata blocks for injection
2022-07-03 11:25:50 +02: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
Jonathan Lopez
238532fe82
Simplify inline conceal
2022-06-22 13:56:11 +02:00
Jonathan Lopez
536f4294f6
Refactor markdown conceal code
2022-06-22 13:56:11 +02:00
Jonathan Lopez
778bfc337a
Conceal markdown links
2022-06-22 13:56:11 +02:00
Stephan Seitz
436d2ebe24
highlights(markdown): fix conceal capture
2022-04-15 18:47:53 +02:00
Stephan Seitz
f0398b7329
highlights(markdown): conceal link markers
2022-04-15 18:42:53 +02:00
Stephan Seitz
2bedaeb732
highlights(markdown): conceal emphasis_delimiter
2022-04-15 18:42:53 +02:00
Stephan Seitz
ade64b4459
highlights(markdown): add conceal to fenced code blocks
2022-04-15 18:42:53 +02:00
Gustaf Lindstedt
01150f50e7
Highlight markdown uri_autolink as @text.uri
2022-03-14 21:34:15 +01:00
MDeiml
7e3b06df71
Only allow yaml at start of file
2022-02-09 21:25:31 +01:00
MDeiml
9fff379c17
Add highlight for markdown delimiters
2022-01-11 12:05:56 +01:00
MDeiml
b5cdb868c7
Fix slow startup times for markdown grammar
2022-01-10 20:32:27 +01:00
MDeiml
391f29c03a
Add highlight for quote marker
2022-01-08 20:00:28 +01:00
numToStr
ab691444ce
highlights(markdown): image_description as reference
2022-01-07 11:14:29 +01:00
numToStr
2a49c05f66
highlights(markdown): image ! as delimeter
2022-01-07 11:14:29 +01:00
numToStr
5b69f82e15
highlights(markdown): link_title as string literal
2022-01-07 11:14:29 +01:00
numToStr
b84a09292e
highlights(markdown): image ( ) [ ] as delemiter
2022-01-07 11:14:29 +01:00
Alvaro Muñoz Sanchez
142c017ecb
improve markdown highlighting
2022-01-06 20:38:54 +01:00
MDeiml
8ada8faf2f
Be more accurate about code block language
2022-01-05 23:38:28 +01:00
Santos Gallegos
6c5f4b1b49
Markdown: update queries
2021-12-21 01:07:22 +01:00
Michael Chris Lopez
c9db432435
highlights(markdown): separate highlight for header marker and underline ( #2129 )
2021-12-19 19:38:42 -05:00
Michael Chris Lopez
296c28be53
highlights(markdown): highlight link_text as @text.reference
2021-12-17 10:36:58 +01:00
Stephan Seitz
387a8f38bd
parsers: Add MDeiml/tree-sitter-markdown as markdown parser
...
Fixes #872
2021-12-14 15:00:14 +01:00
jghauser
b0e1520f47
Add inline html comments
2021-02-25 13:42:25 +01:00
Thomas Vigouroux
90d6ef96d2
fix(injections): update to new API
2020-11-23 21:08:09 +01:00
Thomas Vigouroux
f7d92f663c
feat(languagetree): implement language tree
...
Allow the LanguageTree to be used as an option for highlighting.
Co-authored-by: Santos Gallegos <stsewd@protonmail.com>
Co-authored-by: Yazdani Kiyan <yazdani.kiyan@protonmail.com>
2020-10-19 18:28:45 +02:00