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
License
MIT License.
Metadata
Release files for mdx-journal 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mdx_journal-0.1.4.tar.gz | 2.5 kB | Without provenance | Details |
Release files / mdx_journal-0.1.4.tar.gz
| Download URL | mdx_journal-0.1.4.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7b7d8f011164c38e3ea2aa0de8d89b62e514155887671cd1ea894d7021afdd3e
|
|
BLAKE2b-256 checksum How to use checksums |
1e0e2aca226ea92f4227e21e32a8b5223962f2d5091e60265bb189759fa55813
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for mdx-journal 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.