Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/czue/markdown-emdash
Emdash extension for python-markdown
https://github.com/czue/markdown-emdash
Last synced: 16 days ago
JSON representation
Emdash extension for python-markdown
- Host: GitHub
- URL: https://github.com/czue/markdown-emdash
- Owner: czue
- License: mit
- Created: 2018-02-27T13:39:31.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-05-18T13:14:43.000Z (over 1 year ago)
- Last Synced: 2024-12-06T11:06:29.493Z (21 days ago)
- Language: Python
- Size: 4.88 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# markdown-emdash
Extension for [python-markdown](https://python-markdown.github.io/) that replaces all triple dashes
(`---`) with em-dashes (`—`).More information on [extensions here](https://python-markdown.github.io/extensions/).
## Installation
```
pip install markdown-emdash
```## Usage
```python
markdown.markdown(some_text, extensions=['mdx_emdash'])
```or
```python
from mdx_emdash import EmDashExtension
markdown.markdown(some_text, extensions=[EmDashExtension()])
```