skip to navigation
skip to content

Not Logged In

Markups 0.2.1

A wrapper around various text markups

Package Documentation

Latest Version: 0.6.0

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.1.tar.gz (md5) Source 2012-09-09 6KB
  • Downloads (All Versions):
  • 84 downloads in the last day
  • 398 downloads in the last week
  • 1662 downloads in the last month