← Winnitude! Search  ·  Reader Mode (939 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 46 LINKS

GitHub - aliva/python-markdown-autodirection

Repository navigation

python-markdown-autodirection
Public

About

No description or website provided.

Topics

markdown python-markdown right-to-left rtl

Resources

Readme BSD-3-Clause license Activity

Stars

6 stars

Watchers

1 watching

Forks

0 forks Report repository
Branches

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>

About

No description or website provided.

Topics

markdown python-markdown right-to-left rtl

Resources

Readme BSD-3-Clause license Activity

Stars

6 stars

Watchers

1 watching

Forks

0 forks Report repository

Releases

Packages

Used by

Contributors

Languages