oak-notedown 0.0.1

High-performance incremental Markdown parser for the oak ecosystem with flexible configuration, optimized for documentation and content creation.
Documentation
use crate::{ast::NoteDocument, language::NotedownLanguage};
use oak_core::{Builder, BuilderCache, TextEdit, source::Source};

pub struct NoteBuilder<'config> {
    pub(crate) _config: &'config NotedownLanguage,
}

impl<'config> NoteBuilder<'config> {
    pub fn new(config: &'config NotedownLanguage) -> Self {
        Self { _config: config }
    }
}

impl<'config> Builder<NotedownLanguage> for NoteBuilder<'config> {
    fn build<'a, S: Source + ?Sized>(&self, _source: &S, _edits: &[TextEdit], _cache: &'a mut impl BuilderCache<NotedownLanguage>) -> oak_core::builder::BuildOutput<NotedownLanguage> {
        // Simple implementation
        oak_core::errors::OakDiagnostics { result: Ok(NoteDocument {}), diagnostics: Vec::new() }
    }
}