Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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()])
```