markdown-autodirection

Extension for markdown package to set paragraph direction to `auto`


Keywords
markdown, python-markdown, right-to-left, rtl
License
BSD-1-Clause
Install
pip install markdown-autodirection==0.3

Documentation

Python Markdown Auto Direction

pypi Build Status

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>