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>
Release files for markdown-autodirection 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| markdown-autodirection-0.3.tar.gz | 2.8 kB | Details |
Release files / markdown-autodirection-0.3.tar.gz
| Download URL | markdown-autodirection-0.3.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d490be05a7f00420e65d596d0c11752bbf34d04e0f1b35bc3d5e23dd613b1927
|
|
BLAKE2b-256 checksum How to use checksums |
8d2d06958fae0288d3a5c2eb070c10a190db137f9db6d75a1de87b2d6bf0c89b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|