Skip to main content

Python-Markdown extension for annotating gthnk journal text files

Project description

Extend Python Markdown with the gthnk journal annotation format. With this extension installed, all datestamps and timestamps will be rendered as headings.

Installation

pip install mdx-journal

Documentation

Please see the Readme file on github.

An example

First, let’s look at a journal entry without this custom markup.

>>> from markdown import markdown
>>> text = "2013-12-16\n\n1620\n\nThis is the first entry\n1621\n\nAnd this is the second entry"
>>> markdown(text)
u'<p>2013-12-16</p>\n<p>1620</p>\n<p>This is the first entry\n1621</p>\n<p>And this is the second entry</p>'

Now let’s look at a journal entry with journal markup applied. You will see that dates and times are now wrapped in heading tags.

>>> markdown(text, extensions=["journal"])
u'<p><h3>2013-12-16</h3></p>\n<p><h4>1620</h4></p>\n<p>This is the first entry\n<h4>1621</h4></p>\n<p>And this is the second entry</p>'

Source

https://github.com/iandennismiller/mdx_journal

License

MIT License.

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

mdx_journal-0.1.3.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file mdx_journal-0.1.3.tar.gz.

File metadata

File hashes

Hashes for mdx_journal-0.1.3.tar.gz
Algorithm Hash digest
SHA256 0327f45a382dcf2957530400a42ba25449ffe1084dc39b691535c5ecc43d9541
MD5 c142e91f567cac71b0c398dd2ac7c373
BLAKE2b-256 aa09c59ccedc689600a005d9aafa3c199f0a09171ad495d1a2c2123e0f4fec3a

See more details on using hashes here.

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