GitHub - aliva/python-markdown-autodirection
-
Notifications
You must be signed in to change notification settings - Fork 0
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>