Python Markdown Auto Direction
Adds dir="auto" attribute to paragraphs,
This will help browser to set text direction based on the content of current paragraphs
Install
pip install markdown-autodirection
Use
text = "Text"
from markdown import markdown
html = markdown(text, extensions=['autodirection'])
print(html)
# <p dir="auto">Text</p>
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file markdown-autodirection-0.3.tar.gz.
File metadata
- Download URL: markdown-autodirection-0.3.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d490be05a7f00420e65d596d0c11752bbf34d04e0f1b35bc3d5e23dd613b1927
|
|
| MD5 |
90fc141b5828c9058b4e51a12020d69c
|
|
| BLAKE2b-256 |
8d2d06958fae0288d3a5c2eb070c10a190db137f9db6d75a1de87b2d6bf0c89b
|