Skip to main content
# Jinja2 Markdown extension [![Build Status](https://travis-ci.org/danielchatfield/jinja2_markdown.png)](https://travis-ci.org/danielchatfield/jinja2_markdown)

A simple extension for adding a `{% markdown %}{% endmarkdown %}` tag to Jinja.

## Installation

`pip install jinja2_markdown`

## Usage

```python
from jinja2_markdown import MarkdownExtension


jinja_env.add_extension(MarkdownExtension)

```

or

```python

jinja_env = Environment(extensions=['jinja2_markdown.MarkdownExtension'])
```

## Features

### Automatic whitespace gobble

This works:

```
<article class="article container-very-tight pad-medium highlight-first">
{% markdown %}
Terms of Service
================

In short, we run this website called Volcanic Pixels and you are more
than welcome to use it and the products distributed through it. All we
ask is that you don't use it for things which are illegal or harmful.

***

...
{% endmarkdown %}
</article>
```

## Want a new feature? Bug report?

Open an issue on github, or better submit a pull request.

Metadata

Release files for jinja2_markdown 0.0.3

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

Source distribution (sdist)

Source distribution for jinja2_markdown 0.0.3
File Size Uploaded Provenance Actions
jinja2_markdown-0.0.3.tar.gz 2.1 kB Without provenance Details for jinja2_markdown-0.0.3.tar.gz

Release files / jinja2_markdown-0.0.3.tar.gz

Download URL jinja2_markdown-0.0.3.tar.gz
Size 2.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1a06290f839ac6f0bfea2e3264b9ed8eb7e99ae50142e958577f63d48d33defa
BLAKE2b-256 checksum
How to use checksums
5593d8654282bdee3a938116644e718ade94a6c870ed599118b091e8007c4436
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for jinja2_markdown 0.0.3

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