Crate tree_sitter_md
source ·Expand description
This crate provides Markdown language support for the tree-sitter parsing library.
It contains two grammars: LANGUAGE
to parse the block structure of markdown documents and
INLINE_LANGUAGE
to parse inline content.
It also supplies MarkdownParser
as a convenience wrapper around the two grammars.
MarkdownParser::parse
returns a MarkdownTree
instread of a Tree
. This struct
contains a block tree and an inline tree for each node in the block tree that has inline
content
Structs§
- A stateful object for walking a
MarkdownTree
efficiently. - A parser that produces
MarkdownTree
s. - An object that holds a combined markdown tree.
Constants§
- The syntax highlighting queries for the block grammar.
- The syntax highlighting queries for the inline grammar.
- The language injection queries for the block grammar.
- The language injection queries for the inline grammar.
- The tree-sitter
LanguageFn
for the inline grammar. - The tree-sitter
LanguageFn
for the block grammar. - The content of the
node-types.json
file for the block grammar. - The content of the
node-types.json
file for the inline grammar.