hhatto / Python Hoedown
Licence: mit
The Python binding for hoedown, a markdown parsing library.
Stars: ✭ 52
Labels
python-hoedown
.. image:: https://img.shields.io/pypi/v/hoedown.svg :target: https://pypi.org/project/hoedown/ :alt: PyPI Version
.. image:: https://secure.travis-ci.org/hhatto/python-hoedown.png?branch=master :target: https://travis-ci.org/hhatto/python-hoedown
The Python binding for hoedown_, a markdown parsing library. the original code of the misaka_ library by Frank Smit.
.. _hoedown: https://github.com/hoedown/hoedown .. _misaka: https://github.com/FSX/misaka
Installation
Cython is only needed to compile .pyx file.
With pip::
pip install hoedown
Or manually::
python setup.py install
Example
Very simple example::
from hoedown import Markdown, HtmlRenderer
rndr = HtmlRenderer()
md = Markdown(rndr)
print md.render('some text')
Or::
import hoedown as m
print m.html('some other text')
Command Line Tool
output from Markdown to HTML::
hoedownpy MARKDOWNFILE.md
For Maintainer
intall development requirements::
pip install -e ".[dev]"
build::
invoke all
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].