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

pip install python-markdown-pretty

## Usage

To use (with caution), simply do:

import markdown

code = r'''
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 (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