mdi-core
mdi-core is the native Rust implementation of illusion Markdown (MDI),
a Markdown extension for Japanese typography. It parses CommonMark, GFM, YAML
front matter, and MDI syntax into a portable document tree, and provides
deterministic HTML, text, EPUB, DOCX, and PDF renderers.
Install
[]
= "2.0"
Quick start
use ;
let source = "第^12^話。{東京|とうきょう}は雨だった。";
let document = parse_document;
assert_eq!;
let html = render_html;
Use parse_output when you also need parser capabilities and diagnostics.
When rendering one parsed document in multiple formats, use the
*_document functions, such as render_html_document, to avoid parsing it
again.
Documentation
License
MIT. See LICENSE.