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.5.0.tar.gz
(11.6 kB
view details)
File details
Details for the file Markups-0.5.0.tar.gz
.
File metadata
- Download URL: Markups-0.5.0.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cd6c1b277ad60959794fe4c2db04bbb8749e4e2fb8d32384330c2a2ab4e8d8e |
|
MD5 | aab48355751441b1abf00a366e3ff141 |
|
BLAKE2b-256 | 6df7ff3f31b5ff8d18b76a5c6214907fda3ffe536141ad7bac340ad58e790c86 |