A wrapper around various text markups
Project description
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'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Markups-0.2.2.tar.gz
(8.7 kB
view details)
File details
Details for the file Markups-0.2.2.tar.gz
.
File metadata
- Download URL: Markups-0.2.2.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 346aa4a943f204d7f00264b41f4a34feac604f87d70e4f76d0c5ded8e9a242c2 |
|
MD5 | c02739c0753d8a63dc5c0f92fcea3ed0 |
|
BLAKE2b-256 | 39128218e5e0a4331b2f74a93152f750adbab94983db043b007eb3edd3965c94 |