oak_markdown/language/
mod.rs

1use crate::kind::MarkdownSyntaxKind;
2use oak_core::Language;
3
4#[derive(Debug)]
5pub struct MarkdownLanguage {
6    pub allow_math: bool,
7}
8
9impl Language for MarkdownLanguage {
10    type SyntaxKind = MarkdownSyntaxKind;
11    type TypedRoot = (); // 暂时使用空类型,后续可以定义具体的AST根节点类型
12}
13
14impl Default for MarkdownLanguage {
15    fn default() -> Self {
16        Self { allow_math: false }
17    }
18}