mistune-hilite

Python-Markdown Code Hilite port for Mistune


Keywords
sintax, highlight, hilite, mistune, markdown
License
MIT
Install
pip install mistune-hilite==0.1.0

Documentation

Mistune-Hilite

Python-Markdown Code Hilite port for Mistune.

Installation

$ pip install mistune-hilite

Usage

import mistune
import mistune_hilite

text = '''
def hello_world():
    print('Hello World')
'''

renderer = mistune_hilite.HiliteRenderer()
markdown = mistune.Markdown(renderer=renderer)

html = markdown(text)

Options

TODO

License

MIT