Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

illusion_markdown-2.0.1.tar.gz (40.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

illusion_markdown-2.0.1-cp310-abi3-win_amd64.whl (674.4 kB view details)

Uploaded CPython 3.10+Windows x86-64

illusion_markdown-2.0.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (898.4 kB view details)

Uploaded CPython 3.10+manylinux: glibc 2.17+ x86-64

illusion_markdown-2.0.1-cp310-abi3-macosx_11_0_arm64.whl (806.8 kB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

illusion_markdown-2.0.1-cp310-abi3-macosx_10_12_x86_64.whl (817.5 kB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

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

Hashes for illusion_markdown-2.0.1.tar.gz
Algorithm Hash digest
SHA256 9f7012d2621b7b0c6e759a980212096f62a4eaa16cbcadde1219eca3de1d0a14
MD5 e5d7c5459755e6ac116bdf8a8d39e4ea
BLAKE2b-256 8d9a273b28625ee5ddbebe3ce776ade359779ab3cb118e6b4ebac3a971027638

See more details on using hashes here.

Provenance

The following attestation bundles were made for illusion_markdown-2.0.1.tar.gz:

Publisher: release-pypi.yml on illusions-lab/MDI

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file illusion_markdown-2.0.1-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for illusion_markdown-2.0.1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 9891324a23d2784eb566bd9de2ab6a1326753a6b1ed8d1573810456473b1356c
MD5 0e0f11a36d1d18b50e194535db181959
BLAKE2b-256 1e088252bb5b1ede6b3314851543f4429095637316325f64248565e097eacc42

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file illusion_markdown-2.0.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for illusion_markdown-2.0.1-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e1adf4942b4956968b215c1e6e7c30f89dac4fedaea06dc7d18d34e43df1021c
MD5 27018246962c69d861a92d33e001732d
BLAKE2b-256 5fa2fa0f135e60e4542f6cb91b72f4ac27dc9280b5655c56d41492d5340bf064

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file illusion_markdown-2.0.1-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for illusion_markdown-2.0.1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 11016f0851b327ce20b3cb4cb206ce22193494a46841af42b2129491e8d9dd57
MD5 4d188e155b6800f9b23a139c72fdacf5
BLAKE2b-256 f076caea423eadae2fe42a4026bc45d797f484cb818ea19195bd5ab6243c9d54

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file illusion_markdown-2.0.1-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for illusion_markdown-2.0.1-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 be18ad86eca726e76886691695ed1916d310db6e675eed79b1180a84413bca4a
MD5 12fbd123b1b75933ed9f5bca758556c7
BLAKE2b-256 47268e984ec3223f338cff6a8fc4cd9d9fd2a5783cf72351fa96372d21aea562

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page