@willbooster/tree-sitter-markdown 1.0.6 → 1.0.7
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 +1 -0
- package/package.json +1 -1
- package/tree-sitter-markdown.wasm +0 -0
- package/tree-sitter-markdown_inline.wasm +0 -0
- package/tree-sitter.json +1 -1
package/README.md
CHANGED
|
@@ -138,6 +138,7 @@ parser.set_language(&tree_sitter_md::LANGUAGE.into())?;
|
|
|
138
138
|
|
|
139
139
|
The crate keeps the API of upstream's `tree-sitter-md` crate: `tree_sitter_md::INLINE_LANGUAGE` is the inline grammar,
|
|
140
140
|
and the `parser` feature adds `MarkdownParser`, which parses a document with both grammars into a `MarkdownTree`.
|
|
141
|
+
The `parser` feature requires runtime version 2.0.18 or later, which supports UTF-8 characters split across short input chunks.
|
|
141
142
|
`MarkdownCursor::field_name` returns a name that borrows from the tree (`Option<&'tree str>`), since the
|
|
142
143
|
willbooster-tree-sitter runtime returns field names with that lifetime, where upstream's returns `Option<&'static str>`.
|
|
143
144
|
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|