A jinja2 extension that adds a {% markdown %} tag to templates.
Project description
# Jinja2 Markdown extension
A simple extension for adding a `{% markdown %}{% endmarkdown %}` tag to Jinja.
## Usage
```python
from jinja2.ext.markdown import MarkdownExtension
jinja_env.add_extension(MarkdownExtension)
```
or
```python
jinja_env = Environment(extensions=['jinja2.ext.markdown'])
```
## Features
### Automatic indentation detection
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.
A simple extension for adding a `{% markdown %}{% endmarkdown %}` tag to Jinja.
## Usage
```python
from jinja2.ext.markdown import MarkdownExtension
jinja_env.add_extension(MarkdownExtension)
```
or
```python
jinja_env = Environment(extensions=['jinja2.ext.markdown'])
```
## Features
### Automatic indentation detection
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jinja2_markdown-0.0.2.zip
(2.4 kB
view hashes)
Built Distribution
jinja2_markdown-0.0.2.win-amd64.exe
(225.5 kB
view hashes)
Close
Hashes for jinja2_markdown-0.0.2.win-amd64.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7ff5bedf0a811662e65dd591115167c2f0d1548e1070991f00045e6a9e25edb |
|
MD5 | 950e43290fd19ff715a7efa37fea3cab |
|
BLAKE2b-256 | 132bc7b338bcecbe3ced0e081b118bcdf9528d184639b76de530a8f12c848756 |