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.3.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.3.0
File Size Uploaded Provenance Actions
jinja_markdown2-0.3.0.tar.gz 3.1 kB Without provenance Details for jinja_markdown2-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 6.4 kB

Release files / jinja_markdown2-0.3.0.tar.gz

Download URL jinja_markdown2-0.3.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
270ffd5b45dce48cb0a51c679e3f9269ae8bbdd4ac2a07022b457386ba776543
BLAKE2b-256 checksum
How to use checksums
4d165fae339f7b1238f035dfacdf6cfb941579b4ee044fe16c10513218ac36f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.11.2 Darwin/22.4.0

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

Download URL jinja_markdown2-0.3.0-py3-none-any.whl
Size 3.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4804c9b524c161625449a8f9d01c2b241f860ad7428f42dd79212bf358cce891
BLAKE2b-256 checksum
How to use checksums
cfa4e4925f00dd0c189d8dae7f0a5222286f21295078199d6866f9134031843c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.11.2 Darwin/22.4.0

Security for jinja-markdown2 0.3.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