@willbooster/tree-sitter-markdown 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -19,6 +19,7 @@ digits of an ordered list marker with `'0'` and `'9'` instead of calling `isdigi
|
|
|
19
19
|
own ABI number (`0x57420001`) and load only with that fork's runtime, version 2.0.0 or later: upstream's tree-sitter
|
|
20
20
|
runtime rejects them. They parse as the parsers in upstream's 0.5.3 packages do, with these exceptions:
|
|
21
21
|
|
|
22
|
+
- Link reference definitions labelled `[x]` or `[X]` are recognized even with task-list support enabled.
|
|
22
23
|
- HTML declarations end on the first line containing `>`, leaving subsequent Markdown outside the HTML block.
|
|
23
24
|
- Short HTML comments such as `<!-->` and `<!--->` end on their opening line. Malformed `<!-` prefixes remain ordinary text.
|
|
24
25
|
- Block containers nest to a maximum depth of 255. Additional quote, list, code, or HTML block openers remain literal text inside the deepest container.
|
package/package.json
CHANGED
|
@@ -25,6 +25,9 @@ module.exports = grammar({
|
|
|
25
25
|
|
|
26
26
|
...common.rules,
|
|
27
27
|
_last_token_punctuation: $ => choice(), // needed for compatability with common rules
|
|
28
|
+
link_label: $ => common.EXTENSION_TASK_LIST
|
|
29
|
+
? choice(common.rules.link_label($), /\[[xX]\]/)
|
|
30
|
+
: common.rules.link_label($),
|
|
28
31
|
|
|
29
32
|
// BLOCK STRUCTURE
|
|
30
33
|
|
|
@@ -592,6 +595,7 @@ module.exports = grammar({
|
|
|
592
595
|
conflicts: $ => [
|
|
593
596
|
[$.link_reference_definition],
|
|
594
597
|
[$.link_label, $._line],
|
|
598
|
+
[$.link_label, $._word],
|
|
595
599
|
[$.link_reference_definition, $._line],
|
|
596
600
|
],
|
|
597
601
|
extras: $ => [],
|
|
Binary file
|
|
Binary file
|