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
File details
Details for the file python-markdown-pretty-1.0.1.zip.
File metadata
- Download URL: python-markdown-pretty-1.0.1.zip
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df442db083c68cadbf8ed008d5a1b64dc2eb72af649e4079df8f8e65b8a7c2fd
|
|
| MD5 |
1cd3f5c0485f3edb3954f4291bf6d89a
|
|
| BLAKE2b-256 |
6cea2d3725206bcae50e247aada7b8c2a7bdc94248e2ce795dfb2ad45a7625dd
|
File details
Details for the file python-markdown-pretty-1.0.1.tar.gz.
File metadata
- Download URL: python-markdown-pretty-1.0.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a000ba2da346979b2dd6d03d52bdcdb1850f6067c003417f3f3bfd9c9d4b1171
|
|
| MD5 |
dc89e6c87618ee3cbf513b0901eb9ff3
|
|
| BLAKE2b-256 |
65edc1b1ae8c76440217807cb674b71baa5a80b63cf2feaf5c7bf965db439a72
|