Markdown i18n and l10n using markdown-it-py
Project description
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: 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: only
//
single comments are processed;
Development
Environment
- With Conda
conda env create -f environment.yml
conda activate mpi
poetry install
Usage
Extraction
- Follow
I18NEntryProtocol
andDomainExtractionProtocol
- Subclass
RendererMarkdownI18N
Generation
- Follow
DomainGenerationProtocol
- Subclass
RendererMarkdownL10N
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
mdit-py-i18n-0.1.0.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for mdit_py_i18n-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 725c2bec6aa03ccafc063e2bdf36b74a6e2ab5534d5e53905367e87a6a7bd110 |
|
MD5 | 2d928d9242932efff9175a8f52824040 |
|
BLAKE2b-256 | f896c7e2b960e9ef19215ba8dfe197d4ded67841a938d9932d4682b30d6d60ee |