Skip to main content

mdit-py-i18n

Markdown i18n and l10n using markdown-it-py.

CommonMark compliant. All core Markdown elements are supported, as well as table, and definition list. Front matter handlers are left for users to implement.

Install

pip install mdit-py-i18n

Notes

Some notes about how different elements are handled:

  • Inlines: hard line breaks are replaced with <br />, newlines and consecutive spaces are not kept;
  • Content of each HTML block isn't parsed into finer tokens but processed as a whole;
  • Fenced code blocks: disabled by default. When enabled, only // and # single comments are processed;

Usage

Extraction

  • Implement I18NEntryProtocol and DomainExtractionProtocol
  • Subclass RendererMarkdownI18N

Generation

  • Implement DomainGenerationProtocol
  • Subclass RendererMarkdownL10N

Development

Environment

  • With Conda
conda env create -f environment.yml
conda activate mpi
poetry install

Metadata

Release files for mdit-py-i18n 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mdit-py-i18n 0.2.1
File Size Uploaded
mdit-py-i18n-0.2.1.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mdit-py-i18n 0.2.1
File Interpreter ABI Platform
mdit_py_i18n-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 32.9 kB

Release files / mdit-py-i18n-0.2.1.tar.gz

Download URL mdit-py-i18n-0.2.1.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3d349977e7ddd7b026fd375682ddf56ed261ba13eb055498f5ac1ed65e6fc13c
BLAKE2b-256 checksum
How to use checksums
a274cdd4691ee381c13a8991fbd1224bd4c076d2c50e18817d070c6574905073
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.5

Release files / mdit_py_i18n-0.2.1-py3-none-any.whl

Download URL mdit_py_i18n-0.2.1-py3-none-any.whl
Size 26.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f717f71e3980977063327032335818fa64ca54d309ebc597a5c07ca73a073f0c
BLAKE2b-256 checksum
How to use checksums
ad3ce04ad48b606f075b60c9b91701df0873a1b5c3eefe0ef72e183f91c4fdbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.5

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page