Skip to main content

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 hashes)

Uploaded Source

Built Distribution

markdown_verse-0.2.0-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page