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
I18NEntryProtocolandDomainExtractionProtocol - 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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mdit-py-i18n-0.2.1.tar.gz | 6.9 kB | Without provenance | Details for mdit-py-i18n-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mdit_py_i18n-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for mdit_py_i18n-0.2.1-py3-none-any.whl |
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
|
Security for mdit-py-i18n 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.