Markdown extension for verse
Project description
markdown_verse
Python Markdown extension for wrapping verse
Hello World
===========
'''
Arctic fox's den
adorned with flowers and snow
garden in winter
'''
Leads to:
<h1>Hello World</h1>
<p><div class="verse">Arctic fox's den
adorned with flowers and snow
garden in winter</div></p>
You can also specify the tags to wrap the verse block:
markdown(source, extensions=[VerseExtension(
tag_tuple=('<verse>', '</verse>'))])
with the above markdown would lead to:
<h1>Hello World</h1>
<p><verse>Arctic fox's den
adorned with flowers and snow
garden in winter</verse></p>
Todo
Get rid of the errant paragraph tags
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
markdown_verse-0.2.0.tar.gz
(3.1 kB
view details)
Built Distribution
File details
Details for the file markdown_verse-0.2.0.tar.gz
.
File metadata
- Download URL: markdown_verse-0.2.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31fe4f9a1274fd46633a89495305b262da818ed06861c86cff7408413a6c3e85 |
|
MD5 | 11e0203cd35429c199bf0c1784b7402b |
|
BLAKE2b-256 | 2fc1af7be43099d8b78318a646f43ec0249a424b41b53a81884de6ab08d73427 |
File details
Details for the file markdown_verse-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: markdown_verse-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45da2630bf1c92d5aa12727235507b7d2c35e89d348d65167d9d9a2244bd1f7f |
|
MD5 | f98f50a47c79c57a5e8941c7d54c51cb |
|
BLAKE2b-256 | e0a10b522d116c94353bcaf6e6c9ead824d35313a9d2e73fded9ddbafb814c09 |