Python markdown extension for insert a space between Chinese / Japanese / Korean and English words
Project description
markdown_cjk_spacing
Python markdown extension for insert a space between Chinese / Japanese / Korean and English words, to display beautifully.
Installation
Install with pip.
$ pip install markdown_cjk_spacing
Usage
It is used as an extension of Python-Markdown.
import markdown
md = markdown.Markdown(extensions=["markdown_cjk_spacing.cjk_spacing"])
md.convert("markdown text")
Or use from Pelican as Markdown extension.
# pelicanconf.py
MARKDOWN = {
'extension_configs': {
'markdown.extensions.codehilite': {'css_class': 'highlight'},
'markdown.extensions.extra': {},
'markdown.extensions.meta': {},
'markdown_markup_cjk_spacing': {},
},
'output_format': 'html5',
}
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
Built Distribution
Close
Hashes for markdown_cjk_spacing-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65bae9c84e1fe0c1c82703d4daab64fcdc2eb49d1c9822cbaa9d1ad234cd12df |
|
MD5 | ee286c33d7ed2ae4285db25e8e2d1aab |
|
BLAKE2b-256 | 950798684660e15bdad6ed383bed398dcd0f6f1614e4a4dde01754e190a8d134 |
Close
Hashes for markdown_cjk_spacing-0.1.0-py3.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bca0900d7283f4a1cc37255e52ce19c043a29fa14eec68e38d8360023ab8b3a |
|
MD5 | cfa59f160e33e73b33423ec9a56a0fb6 |
|
BLAKE2b-256 | fa3df842b45fd43e633fe0a252e81d87995119a3f715cc3ffd8db778de2aeb2b |