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.0.tar.gz
(18.7 kB
view details)
File details
Details for the file Markups-0.6.0.tar.gz.
File metadata
- Download URL: Markups-0.6.0.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e601e9a9fff58403b4e2de3b8e8c34ce33a8604549c2344c569d815ae0e803f1
|
|
| MD5 |
2cb4da58da9919d70e5d20f5905c003f
|
|
| BLAKE2b-256 |
cc7a3c314ca67670fac93b451a099d0a7d84a9a662525263e4539c80494e4d9d
|