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 details)

Uploaded Source

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

Uploaded Source

File details

Details for the file python-markdown-pretty-1.0.1.zip.

File metadata

File hashes

Hashes for python-markdown-pretty-1.0.1.zip
Algorithm Hash digest
SHA256 df442db083c68cadbf8ed008d5a1b64dc2eb72af649e4079df8f8e65b8a7c2fd
MD5 1cd3f5c0485f3edb3954f4291bf6d89a
BLAKE2b-256 6cea2d3725206bcae50e247aada7b8c2a7bdc94248e2ce795dfb2ad45a7625dd

See more details on using hashes here.

File details

Details for the file python-markdown-pretty-1.0.1.tar.gz.

File metadata

File hashes

Hashes for python-markdown-pretty-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a000ba2da346979b2dd6d03d52bdcdb1850f6067c003417f3f3bfd9c9d4b1171
MD5 dc89e6c87618ee3cbf513b0901eb9ff3
BLAKE2b-256 65edc1b1ae8c76440217807cb674b71baa5a80b63cf2feaf5c7bf965db439a72

See more details on using hashes here.

Supported by

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