Commit graph

40 commits

Author SHA1 Message Date
Pham Huy Hoang
5781c94703
feat: markdown indents (#4862) 2023-05-26 08:08:06 +00:00
Christian Clason
680807fa6a highlights(markup): distinguish heading level in queries
also add a few queries from Helix and remove controversial
code block conceal in Markdown
2023-05-13 16:50:32 +02:00
Pham Huy Hoang
4fe6b4c07f fix: add @combined to markdown html 2023-05-03 16:23:09 -04:00
Benny Powers
cdc45ac6ba
feat(markdown): configured aliases for fenced code block languages (#4659)
* feat(markdown): configured aliases for languages

* refactor: use vim.treesitter.match

* refactor: rename local vars

* fix: query syntax
2023-04-18 21:51:14 +09:00
Christian Clason
7e4a7c4508 markdown: add strikethrough and blockquote captures 2023-01-14 11:52:25 +01:00
Folke Lemaitre
39bda37d4a feat: added highlights for markdown checkboxes 2022-12-02 18:02:16 +01:00
Folke Lemaitre
a2ff4b42e1 feat: conceal backslash escape 2022-10-30 11:38:42 +01:00
Folke Lemaitre
9ada5f70f9 feat: markdown table highlights and inline 2022-10-29 15:31:35 +02:00
Lewis Russell
2eaf188269 fix(fold): don't include whitespace end regions
Some languages that are difficult to parse via Treesitter may
incorrectly include whitespace lines at the end of regions. This can
makes the calculated folds sub-optimal.

To recitfy, use a custom directive (trim), to calculate the range with
the trailing whitespace lines removed. Note this only works if the
region end column is 0.

Also added folds for Make.
2022-09-12 11:49:51 +01:00
Lewis Russell
2a63ea5665 feat(spell): upstream spell queries from spellsitter 2022-09-06 12:44:19 +01:00
Zheng Piaodan
6b0ddaa9b3 feat: allow to fold markdown sections 2022-08-26 05:54:10 -07:00
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