Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aliva/python-markdown-autodirection
https://github.com/aliva/python-markdown-autodirection
markdown python-markdown right-to-left rtl
Last synced: 3 days 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 (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-02-15T14:59:47.000Z (over 5 years ago)
- Last Synced: 2024-09-13T12:06:39.912Z (14 days ago)
- Topics: markdown, python-markdown, right-to-left, rtl
- Language: Python
- Size: 14.6 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Python Markdown Auto Direction
[![pypi](https://img.shields.io/pypi/v/markdown-autodirection.svg?style=flat)][pypi-url]
[![](https://img.shields.io/pypi/l/markdown-autodirection.svg?style=flat)][license-url]
[![](https://img.shields.io/pypi/dm/markdown-autodirection.svg?style=flat)][pypi-url]
[![Build Status](https://travis-ci.org/aliva/python-markdown-autodirection.svg?branch=master)][travis-url][pypi-url]: https://pypi.org/project/markdown-autodirection/
[license-url]: LICENSE
[travis-url]: https://travis-ci.org/aliva/python-markdown-autodirectionAdds `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
```