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 details)
Built Distribution
File details
Details for the file jinja_markdown2-0.2.0.tar.gz
.
File metadata
- Download URL: jinja_markdown2-0.2.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.2 Darwin/22.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d53ed2d1ad64d0e5762cb105553555e7fa87014f4d61ce95e9597a270dc38ed |
|
MD5 | 724997d7c523e1947b615449d07b2510 |
|
BLAKE2b-256 | 6700be808a2e768bed0651db8ff28b4e355a717ab85d82e0998f943c24c46186 |
File details
Details for the file jinja_markdown2-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: jinja_markdown2-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.11.2 Darwin/22.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31e83a818d408360562cc0ed10fb3a453cf7c3d06d44e83c31fdf4a053d2c61e |
|
MD5 | 10071230e35d91ca98454a4cf88e2a5d |
|
BLAKE2b-256 | 55aa5b1ad2bd8ba766658d8673715c080dda611e3509ca38df43595f83acec18 |