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.4.tar.gz
(9.7 kB
view details)
File details
Details for the file Markups-0.4.tar.gz.
File metadata
- Download URL: Markups-0.4.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c33a19200a224b9c320e48557ec29e13dbe8094c6670da2851b75d6657950b8
|
|
| MD5 |
930b5b2a0bc77219e825b954366f50c9
|
|
| BLAKE2b-256 |
d65c53242c91dee291a8075147b0c89712b76be5587679a2fdb3152b8078dc8c
|