Skip to main content

oak_markdown/
lib.rs

1#![doc = include_str!("readme.md")]
2#![feature(new_range_api)]
3#![warn(missing_docs)]
4#![allow(missing_copy_implementations)]
5#![doc(html_logo_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
6#![doc(html_favicon_url = "https://raw.githubusercontent.com/ygg-lang/oaks/refs/heads/dev/documents/logo.svg")]
7
8/// The Markdown language implementation for Oaks.
9pub mod language;
10
11/// Abstract Syntax Tree for Markdown.
12pub mod ast;
13/// Builder for constructing Markdown syntax trees.
14pub mod builder;
15
16/// Syntax kinds for Markdown.
17/// Lexer for tokenizing Markdown source.
18pub mod lexer;
19/// Language Server Protocol support for Markdown.
20#[cfg(any(feature = "lsp", feature = "oak-highlight", feature = "oak-pretty-print"))]
21pub mod lsp;
22/// MCP module.
23#[cfg(feature = "mcp")]
24pub mod mcp;
25
26/// Parser for building Markdown syntax trees.
27pub mod parser;
28
29pub use crate::{ast::MarkdownRoot, builder::MarkdownBuilder, language::MarkdownLanguage, lexer::MarkdownLexer, parser::MarkdownParser};
30
31#[cfg(feature = "oak-highlight")]
32pub use crate::lsp::highlighter::MarkdownHighlighter;
33
34// #[cfg(feature = "mcp")]
35// pub use crate::mcp::serve_markdown_mcp;
36pub use lexer::token_type::MarkdownTokenType;
37pub use parser::element_type::MarkdownElementType;