Skip to main content

Jinja-Markdown

Tests

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.200630

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jinja-markdown 1.200630
File Size Uploaded Provenance Actions
jinja_markdown-1.200630.tar.gz 6.9 kB Without provenance Details for jinja_markdown-1.200630.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jinja-markdown 1.200630
File Interpreter ABI Platform Actions
jinja_markdown-1.200630-py3-none-any.whl Python 3 none any Details for jinja_markdown-1.200630-py3-none-any.whl

Total release size: 14.0 kB

Release files / jinja_markdown-1.200630.tar.gz

Download URL jinja_markdown-1.200630.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
5d5c3b78dd31fed8cca518a742a9e69564cdc412ac0d708e23f7c0105a15d8c1
BLAKE2b-256 checksum
How to use checksums
5ba8ee1e85737f17bfa8a4d3d5b7f4ba690074ddba0b862869a4af2a18b1ca7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.0

Release files / jinja_markdown-1.200630-py3-none-any.whl

Download URL jinja_markdown-1.200630-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a43c14f2f88e54d342d7c31fcb7f9f469e2eabe54e813e155f93610cd770c256
BLAKE2b-256 checksum
How to use checksums
c9d86b51afba910b3bc89bdd6556644f863d34b0a25085404030db9d52e29c4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.0

Security for jinja-markdown 1.200630

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.

Release history Release notifications | RSS feed

This release

1.200630 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page