Jinja-Markdown
A jinja2 extension that adds a {% markdown %} tag powered with PyMdown Extensions.
Installation
pip install jinja_markdown
Usage
jinja_env = Environment(extensions=['jinja_markdown.MarkdownExtension'])
or
from jinja_markdown import MarkdownExtension
jinja_env.add_extension(MarkdownExtension)
Then your templates can contain Markdown inside {% markdown %} / {% endmarkdown %} block tags.
<article>
{% markdown %}
# Heading
Regular text
print("Hello world!")
{% endmarkdown %}
</article>
About indentation
To avoid issues is recommended that you don't indent the markdown code inside the tag. If you prefer do it anyway, make sure the first line has the baseline indentation level.
<!-- Supported but not recommended -->
<article>
{% markdown %}
# Baseline of identation
Regular paragraph
This will be interpreted as code
</article>
Metadata
Release files for jinja-markdown 1.210911
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 | Actions |
|---|---|---|---|---|
| jinja_markdown-1.210911.tar.gz | 3.6 kB | Without provenance | Details for jinja_markdown-1.210911.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jinja_markdown-1.210911-py3-none-any.whl | Python 3 | none | any | Details for jinja_markdown-1.210911-py3-none-any.whl |
Total release size: 7.1 kB
Release files / jinja_markdown-1.210911.tar.gz
| Download URL | jinja_markdown-1.210911.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f598a58da9b9ced4956c6e113ba4369e9683bac5065bfdef2566bd6de9983eb0
|
|
BLAKE2b-256 checksum How to use checksums |
a90a04036727c369c5013f6780ef8c9207b064ee2f183384893ad54ce93ab27c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.0
|
Release files / jinja_markdown-1.210911-py3-none-any.whl
| Download URL | jinja_markdown-1.210911-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cce8e2be016227c925a8c82a7f3499099319d239fedc481b7728a7c9e9e3cfcc
|
|
BLAKE2b-256 checksum How to use checksums |
10a49d42465c2e6dc24a4d13dede260f13f78d96b7982020491e91272798dffb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.0
|
Security for jinja-markdown 1.210911
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.