skip to navigation
skip to content

Not Logged In

Markups 0.2.1

A wrapper around various text markups

Latest Version: 0.4

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.name
'reStructuredText'
>>> markup.attributes[markups.SYNTAX_DOCUMENTATION]
'http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html'
>>> 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):
  • 37 downloads in the last day
  • 318 downloads in the last week
  • 1420 downloads in the last month