skip to navigation
skip to content

Not Logged In

Markups 0.6.3

A wrapper around various text markups

Package Documentation

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.6.3.tar.gz (md5, pgp) Source 2015-06-16 18KB
  • Downloads (All Versions):
  • 106 downloads in the last day
  • 445 downloads in the last week
  • 1889 downloads in the last month