skip to navigation
skip to content

Markups 0.5.0

A wrapper around various text markups

Package Documentation

Latest Version: 0.6.3

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.5.0.tar.gz (md5, pgp) Source 2014-07-25 11KB
  • Downloads (All Versions):
  • 65 downloads in the last day
  • 313 downloads in the last week
  • 1589 downloads in the last month