skip to navigation
skip to content

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):
  • 58 downloads in the last day
  • 394 downloads in the last week
  • 1738 downloads in the last month