oak-notedown 0.0.0

High-performance incremental Markdown parser for the oak ecosystem with flexible configuration, optimized for documentation and content creation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::kind::NoteSyntaxKind;
use oak_core::Language;

#[derive(Debug)]
pub struct NotedownLanguage {
    pub xml_call: bool,
}

impl Language for NotedownLanguage {
    type SyntaxKind = NoteSyntaxKind;
    type TypedRoot = (); // 暂时使用空类型,后续可以定义具体的AST根节点类型
}

impl Default for NotedownLanguage {
    fn default() -> Self {
        Self { xml_call: false }
    }
}