Skip to main content

Code pretty extension for python-markdown

Project description

Code Pretty Extension for Python Markdown
=====================================================

Adds enhenced code/syntax highlighting to standard Python-Markdown code blocks.

## Installation

```sh
pip install python-markdown-pretty
```

## Usage

To use (with caution), simply do:

```python
import markdown

code = r'''
```c
int main(int argc, char* argv[]) {
return 0;
}
```'''

md = markdown.Markdown(extensions=['pretty'])
print md.convert(code)
```

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 python-markdown-pretty, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size python-markdown-pretty-1.0.1.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View hashes
Filename, size python-markdown-pretty-1.0.1.zip (6.1 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 SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page