https://github.com/aliva/python-markdown-autodirection
https://github.com/aliva/python-markdown-autodirection
markdown python-markdown right-to-left rtl
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/aliva/python-markdown-autodirection
- Owner: aliva
- License: bsd-3-clause
- Created: 2019-02-11T15:17:14.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-15T14:59:47.000Z (almost 7 years ago)
- Last Synced: 2025-03-24T03:11:49.442Z (9 months ago)
- Topics: markdown, python-markdown, right-to-left, rtl
- Language: Python
- Size: 14.6 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Python Markdown Auto Direction
[][pypi-url]
[][license-url]
[][pypi-url]
[][travis-url]
[pypi-url]: https://pypi.org/project/markdown-autodirection/
[license-url]: LICENSE
[travis-url]: https://travis-ci.org/aliva/python-markdown-autodirection
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
```python
text = "Text"
from markdown import markdown
html = markdown(text, extensions=['autodirection'])
print(html)
#
Text
```