Python bindings for illusion Markdown (MDI), backed by the Rust core.
Project description
illusion-markdown
Python bindings for illusion Markdown (MDI). The package is a
thin PyO3 interface over the repository's Rust mdi-core; it does not parse
or render MDI in Python.
pip install illusion-markdown
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file illusion_markdown-2.0.1.tar.gz.
File metadata
- Download URL: illusion_markdown-2.0.1.tar.gz
- Upload date:
- Size: 40.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f7012d2621b7b0c6e759a980212096f62a4eaa16cbcadde1219eca3de1d0a14
|
|
| MD5 |
e5d7c5459755e6ac116bdf8a8d39e4ea
|
|
| BLAKE2b-256 |
8d9a273b28625ee5ddbebe3ce776ade359779ab3cb118e6b4ebac3a971027638
|
Provenance
The following attestation bundles were made for illusion_markdown-2.0.1.tar.gz:
Publisher:
release-pypi.yml on illusions-lab/MDI
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
illusion_markdown-2.0.1.tar.gz -
Subject digest:
9f7012d2621b7b0c6e759a980212096f62a4eaa16cbcadde1219eca3de1d0a14 - Sigstore transparency entry: 2206852922
- Sigstore integration time:
-
Permalink:
illusions-lab/MDI@0ba3717ea6ffca79bf2ca81d56980854068cf181 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/illusions-lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@0ba3717ea6ffca79bf2ca81d56980854068cf181 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file illusion_markdown-2.0.1-cp310-abi3-win_amd64.whl.
File metadata
- Download URL: illusion_markdown-2.0.1-cp310-abi3-win_amd64.whl
- Upload date:
- Size: 674.4 kB
- Tags: CPython 3.10+, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9891324a23d2784eb566bd9de2ab6a1326753a6b1ed8d1573810456473b1356c
|
|
| MD5 |
0e0f11a36d1d18b50e194535db181959
|
|
| BLAKE2b-256 |
1e088252bb5b1ede6b3314851543f4429095637316325f64248565e097eacc42
|
Provenance
The following attestation bundles were made for illusion_markdown-2.0.1-cp310-abi3-win_amd64.whl:
Publisher:
release-pypi.yml on illusions-lab/MDI
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
illusion_markdown-2.0.1-cp310-abi3-win_amd64.whl -
Subject digest:
9891324a23d2784eb566bd9de2ab6a1326753a6b1ed8d1573810456473b1356c - Sigstore transparency entry: 2206852998
- Sigstore integration time:
-
Permalink:
illusions-lab/MDI@0ba3717ea6ffca79bf2ca81d56980854068cf181 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/illusions-lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@0ba3717ea6ffca79bf2ca81d56980854068cf181 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file illusion_markdown-2.0.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: illusion_markdown-2.0.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 898.4 kB
- Tags: CPython 3.10+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1adf4942b4956968b215c1e6e7c30f89dac4fedaea06dc7d18d34e43df1021c
|
|
| MD5 |
27018246962c69d861a92d33e001732d
|
|
| BLAKE2b-256 |
5fa2fa0f135e60e4542f6cb91b72f4ac27dc9280b5655c56d41492d5340bf064
|
Provenance
The following attestation bundles were made for illusion_markdown-2.0.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:
Publisher:
release-pypi.yml on illusions-lab/MDI
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
illusion_markdown-2.0.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl -
Subject digest:
e1adf4942b4956968b215c1e6e7c30f89dac4fedaea06dc7d18d34e43df1021c - Sigstore transparency entry: 2206853048
- Sigstore integration time:
-
Permalink:
illusions-lab/MDI@0ba3717ea6ffca79bf2ca81d56980854068cf181 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/illusions-lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@0ba3717ea6ffca79bf2ca81d56980854068cf181 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file illusion_markdown-2.0.1-cp310-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: illusion_markdown-2.0.1-cp310-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 806.8 kB
- Tags: CPython 3.10+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11016f0851b327ce20b3cb4cb206ce22193494a46841af42b2129491e8d9dd57
|
|
| MD5 |
4d188e155b6800f9b23a139c72fdacf5
|
|
| BLAKE2b-256 |
f076caea423eadae2fe42a4026bc45d797f484cb818ea19195bd5ab6243c9d54
|
Provenance
The following attestation bundles were made for illusion_markdown-2.0.1-cp310-abi3-macosx_11_0_arm64.whl:
Publisher:
release-pypi.yml on illusions-lab/MDI
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
illusion_markdown-2.0.1-cp310-abi3-macosx_11_0_arm64.whl -
Subject digest:
11016f0851b327ce20b3cb4cb206ce22193494a46841af42b2129491e8d9dd57 - Sigstore transparency entry: 2206853097
- Sigstore integration time:
-
Permalink:
illusions-lab/MDI@0ba3717ea6ffca79bf2ca81d56980854068cf181 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/illusions-lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@0ba3717ea6ffca79bf2ca81d56980854068cf181 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file illusion_markdown-2.0.1-cp310-abi3-macosx_10_12_x86_64.whl.
File metadata
- Download URL: illusion_markdown-2.0.1-cp310-abi3-macosx_10_12_x86_64.whl
- Upload date:
- Size: 817.5 kB
- Tags: CPython 3.10+, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be18ad86eca726e76886691695ed1916d310db6e675eed79b1180a84413bca4a
|
|
| MD5 |
12fbd123b1b75933ed9f5bca758556c7
|
|
| BLAKE2b-256 |
47268e984ec3223f338cff6a8fc4cd9d9fd2a5783cf72351fa96372d21aea562
|
Provenance
The following attestation bundles were made for illusion_markdown-2.0.1-cp310-abi3-macosx_10_12_x86_64.whl:
Publisher:
release-pypi.yml on illusions-lab/MDI
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
illusion_markdown-2.0.1-cp310-abi3-macosx_10_12_x86_64.whl -
Subject digest:
be18ad86eca726e76886691695ed1916d310db6e675eed79b1180a84413bca4a - Sigstore transparency entry: 2206852963
- Sigstore integration time:
-
Permalink:
illusions-lab/MDI@0ba3717ea6ffca79bf2ca81d56980854068cf181 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/illusions-lab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-pypi.yml@0ba3717ea6ffca79bf2ca81d56980854068cf181 -
Trigger Event:
workflow_dispatch
-
Statement type: