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.

Source Distributions

python-markdown-pretty-1.0.1.zip (6.1 kB view hashes)

Uploaded Source

python-markdown-pretty-1.0.1.tar.gz (2.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page