skip to navigation
skip to content

Markups 0.2

A wrapper around various text markups

Package Documentation

Latest Version: 2.0.1

This module provides a wrapper around the various text markup languages, such as Markdown and reStructuredText (these two are supported by default).

Usage example:

>>> markup = markups.get_markup_for_file_name("myfile.rst")
>>> markup.attributes[markups.SYNTAX_DOCUMENTATION]
>>> text = "Hello, world!\n=============\n\nThis is an example **reStructuredText** document."
>>> markup.get_document_title(text)
'Hello, world!'
>>> markup.get_document_body(text)
'<p>This is an example <strong>reStructuredText</strong> document.</p>\n'
File Type Py Version Uploaded on Size
Markups-0.2.tar.gz (md5) Source 2012-09-04 5KB