A markdownish markup language.
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
monk
unittests
license.txt
readme.md
setup.py
test_monk.py

readme.md

Monk

Monk is a lightweight, markdownish markup language for generating HTML. It's implemented in Python and can be used as both a command line utility and a Python library.

On the command line:

$ monk < input.txt > output.html

As a library:

>>> import monk
>>> html = monk.render(text)

Monk inherits much of its basic syntax from Markdown:

This is a paragraph containing *emphasised* and **strong** text.
It also contains `code` in backticks.

This is a second paragraph containing a [link](http://example.com).

Monk differs from Markdown in supporting an extensible, indentation-based syntax for generating arbitrary HTML:

:div .outer
    :div .inner
        This is a paragraph.

Monk also includes out-of-the-box support for tables, tables-of-contents, definition lists, syntax highlighting, and footnotes.

See the documentation for details.