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)
```
=====================================================
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Close
Hashes for python-markdown-pretty-1.0.1.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | df442db083c68cadbf8ed008d5a1b64dc2eb72af649e4079df8f8e65b8a7c2fd |
|
MD5 | 1cd3f5c0485f3edb3954f4291bf6d89a |
|
BLAKE2b-256 | 6cea2d3725206bcae50e247aada7b8c2a7bdc94248e2ce795dfb2ad45a7625dd |
Close
Hashes for python-markdown-pretty-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a000ba2da346979b2dd6d03d52bdcdb1850f6067c003417f3f3bfd9c9d4b1171 |
|
MD5 | dc89e6c87618ee3cbf513b0901eb9ff3 |
|
BLAKE2b-256 | 65edc1b1ae8c76440217807cb674b71baa5a80b63cf2feaf5c7bf965db439a72 |