Skip to main content

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

Project description

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>

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for markdown-autodirection, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size markdown-autodirection-0.3.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page