No project description provided
Project description
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 %}
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
jinja_markdown2-0.2.0.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for jinja_markdown2-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31e83a818d408360562cc0ed10fb3a453cf7c3d06d44e83c31fdf4a053d2c61e |
|
MD5 | 10071230e35d91ca98454a4cf88e2a5d |
|
BLAKE2b-256 | 55aa5b1ad2bd8ba766658d8673715c080dda611e3509ca38df43595f83acec18 |