wikioxide 0.1.0

MediaWiki wikitext parser producing typed domain models (templates, links, categories, warnings) with template expansion — no HTML, no network
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! The preprocessor (stage S1): scans source text into a [`PpDom`] of text runs,
//! comments, template/argument calls and extension-tag captures.
//!
//! `dom` holds the data structures (frozen contract); `build` (the scanner/stack
//! machine) and `flatten` (marker-text rendering for parse-only mode) land on top.

mod build;
mod dom;
mod flatten;

pub(crate) use build::{InclusionMode, build};
pub(crate) use dom::{Part, PpDom, PpKind, PpNode, PpNodeId};
pub(crate) use flatten::{Flattened, flatten};