aozora 0.5.0

Aozora Bunko notation parser with incremental document snapshots
Documentation

aozora

A parser for 青空文庫記法 (Aozora Bunko notation). Reads Shift_JIS or UTF-8; emits HTML, JSON, or canonical source.

use aozora::parse;

let doc = parse("|青梅《おうめ》").expect("source fits parser limits");
let snapshot = doc.snapshot();

let html = snapshot.to_html();
let diagnostics = snapshot.diagnostics();

Depend on this crate alone for parsing, diagnostics, rendering, and incremental editing.

Documentation

License

Apache-2.0 OR MIT, at your option.