Skip to main content

jinja-markdown2

Inspired by the original jinja-markdown.

Uses jinja2 + markdown2 to render markdown code after jinja's templating magic (variable interpolation, etc.) is done. Critical difference between the naive:

Markdown ->  HTML -> Jinja

Notice, the above processes the markdown first and jinja templating last. Whilst this approach technically works, it results in a myriad of problems with the resultant HTML that markdown2 formulates.

The flow is then:

HTML -> Jinja -> Markdown

Usage

Python:

...
from jinja_markdown2 import MarkdownExtension

jinja_env = ...
jinja_env.add_extension(MarkdownExtension)
...

Markdown:

{% markdown %}

## Hello {{ world_name }}

{% endmarkdown %}

Metadata

Release files for jinja-markdown2 0.4.0

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-markdown2 0.4.0
File Size Uploaded Provenance Actions
jinja_markdown2-0.4.0.tar.gz 2.8 kB Without provenance Details for jinja_markdown2-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jinja-markdown2 0.4.0
File Interpreter ABI Platform Actions
jinja_markdown2-0.4.0-py3-none-any.whl Python 3 none any Details for jinja_markdown2-0.4.0-py3-none-any.whl

Total release size: 6.3 kB

Release files / jinja_markdown2-0.4.0.tar.gz

Download URL jinja_markdown2-0.4.0.tar.gz
Size 2.8 kB
Tags Source
SHA-256 checksum
How to use checksums
51addceeec19f4dffb90d495c423bf5196fe721991ebb67f08af637332224790
BLAKE2b-256 checksum
How to use checksums
18bcf5905398419e4683cf1385eb5ba1217529f49e937b907ca1704d3276de4b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.3 Darwin/24.0.0

Release files / jinja_markdown2-0.4.0-py3-none-any.whl

Download URL jinja_markdown2-0.4.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ee43255a20f97874006a1d003d13bdd27ba8c39708738df8bd5cd1ce6029ab01
BLAKE2b-256 checksum
How to use checksums
79e4145cc23195b673d73f5cd27c760f7dc1fd1b890d9a4088413e9afe57cc38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.3 Darwin/24.0.0

Security for jinja-markdown2 0.4.0

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.

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