dcf87c8a06 | ||
---|---|---|
docs | ||
misaka | ||
scripts | ||
tests | ||
.gitignore | ||
.travis.yml | ||
LICENSE.txt | ||
MANIFEST.in | ||
README.rst | ||
THANKS | ||
build_ffi.py | ||
requirements.txt | ||
setup.py | ||
tox.ini |
README.rst
Misaka
A CFFI binding for Hoedown (version 3), a markdown parsing library.
Documentation can be found at: http://misaka.61924.nl/
Installation
Misaka has been tested on CPython 2.6, 2.7, 3.2, 3.3, 3.4, 3.5 and PyPy 2.6. It needs CFFI 1.0 or newer, because of this it will not work on PyPy 2.5 and older.
With pip:
pip install misaka
Or manually:
python setup.py install
Example
Very simple example:
import misaka as m
print m.html('some other text')
Or:
from misaka import Markdown, HtmlRenderer
= HtmlRenderer()
rndr = Markdown(rndr)
md
print(md('some text'))