oak-notedown 0.0.2

High-performance incremental Markdown parser for the oak ecosystem with flexible configuration, optimized for documentation and content creation.
Documentation
use crate::kind::NoteSyntaxKind;
use oak_core::{Language, LanguageCategory};

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

impl Language for NotedownLanguage {
    const NAME: &'static str = "notedown";
    const CATEGORY: LanguageCategory = LanguageCategory::Markup;

    type TokenType = NoteSyntaxKind;
    type ElementType = NoteSyntaxKind;
    type TypedRoot = crate::ast::NoteDocument;
}

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