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-0.8.1.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | de9ec170d69e654b705c3347adcfc5579ff122fc4e12480b1f5e559413b25d6e |
|
MD5 | 6314c7548621538c63e499fe31d73592 |
|
BLAKE2b-256 | bb51af50ea3fc87c880831dad7fe6b0e1a2de874948905951e9b3e9089fc6bc6 |
Close
Hashes for python-markdown-pretty-0.8.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a89ca537277f44ff403f95392a772a09e62e38b81db76f25fc67588981ef5bf1 |
|
MD5 | 3a9bf4bae52579070b1952cc07c77d3d |
|
BLAKE2b-256 | f7c4e1f2fdbbd4dd12b5cbd121201511f02fa49caeca1f715311900ee9ba4f07 |