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.1.tar.gz
(6.2 kB
view details)
File details
Details for the file Markups-0.2.1.tar.gz.
File metadata
- Download URL: Markups-0.2.1.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d700eca0c29cd497e55b1e868fc9d0bd547a6d41ea71946a7dd60df76d1ec54
|
|
| MD5 |
12cfb91051cc95fec2beaee41941c9a7
|
|
| BLAKE2b-256 |
475f920949a44e731a250e135e1ab01b0eacb3a9de0f9252c797e620281c9ffb
|