Metadata-Version: 2.4
Name: illusion-markdown
Version: 2.0.1
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Rust
Classifier: Topic :: Text Processing :: Markup
Summary: Python bindings for illusion Markdown (MDI), backed by the Rust core.
Keywords: markdown,mdi,ruby,typesetting
Author: illusions-lab
License: MIT
Requires-Python: >=3.10
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Documentation, https://illusions-lab.github.io/mdi-js/
Project-URL: Homepage, https://github.com/illusions-lab/MDI
Project-URL: Issues, https://github.com/illusions-lab/MDI/issues
Project-URL: Repository, https://github.com/illusions-lab/MDI

# illusion-markdown

Python bindings for [illusion Markdown (MDI)](../SYNTAX.md). The package is a
thin PyO3 interface over the repository's Rust `mdi-core`; it does not parse
or render MDI in Python.

```bash
pip install illusion-markdown
```

```python
import mdi

result = mdi.parse("{東京|とうきょう} ^12^")
html = mdi.render_html("# 題\n\n{東京|とうきょう}")
epub = mdi.render_epub("# Chapter\n\ntext")
```

`parse()` returns the versioned, JSON-compatible MDI document IR with UTF-8
byte spans and recoverable diagnostics. The package also exposes
`serialize_mdi`, `render_text`, `render_text_format`, `render_epub`, and
`render_docx`.

The PyPI distribution is named `illusion-markdown`; the import namespace is
`mdi`.

