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.
Constants§
- The content of the
node-types.json
file for the block grammar. - The content of the
node-types.json
file for the inline grammar.