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.6.1.tar.gz
(19.1 kB
view details)
File details
Details for the file Markups-0.6.1.tar.gz
.
File metadata
- Download URL: Markups-0.6.1.tar.gz
- Upload date:
- Size: 19.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f3d6f7b85ac9ddcb936b8b2b6fa15a42ddc9dfc22a075d83d9160b5d59f6d84 |
|
MD5 | f00b47f1661a800f44baef1fea91ab89 |
|
BLAKE2b-256 | 932bbdbafe736d6e53aba4345145dde993a784f7c71bb0ec82b6d43ad2d508bd |