GitHub - aliva/python-markdown-autodirection
Repository navigation
python-markdown-autodirectionPublic
About
No description or website provided.Topics
markdown python-markdown right-to-left rtlResources
Readme BSD-3-Clause license ActivityStars
6 starsWatchers
1 watchingForks
0 forks Report repositoryBranches
Tags
Go to Branches page Go to Tags page
Latest commit
History
15 Commits
View commit history for this file.
Folders and files
| Name | Name | Last commit message | Last commit date |
|---|---|---|---|
| .gitignore | .gitignore | ||
| .travis.yml | .travis.yml | ||
| LICENSE | LICENSE | ||
| README.md | README.md | ||
| autodirection.py | autodirection.py | ||
| setup.cfg | setup.cfg | ||
| setup.py | setup.py | ||
| test.py | test.py | ||
| tox.ini | tox.ini | ||
Repository files navigation
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>