oak-notedown 0.0.11

High-performance incremental Markdown parser for the oak ecosystem with flexible configuration, optimized for documentation and content creation.
Documentation
#![doc = include_str!("readme.md")]
use oak_core::{Language, LanguageCategory};

/// Notedown language definition
#[derive(Debug)]
pub struct NotedownLanguage {
    /// Whether to support XML calls
    pub xml_call: bool,
}

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

    type TokenType = crate::lexer::token_type::NoteTokenType;
    type ElementType = crate::parser::element_type::NoteElementType;
    type TypedRoot = crate::ast::NoteDocument;
}

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