pandoc-jinja 0.1.3
pip install pandoc-jinja==0.1.3
Released:
Render pandoc metadata variables inside the document
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License
- Author: Damien Clochard
- Requires: Python >=3.7
Classifiers
- License
- Operating System
- Programming Language
Project description
pandoc-jinja
Render pandoc metadata inside the document itself
Example
Write a markdown file, define metadata variable, and use them inside the with double brackets.
---
title: 'Greetings !'
bonjour: 'Hello'
...
## {{ title | upper }}
{{ bonjour }}, {{name}} !
You can also define variable from the command line
with --metadata
or --metadata-file
:
$ pandoc foo.md --filter=pandoc-jinja --metadata=name:world
<h2 id="title">GREETINGS !</h2>
<p>Hello, world !</p>
Disclaimer
-
This filter is slow. In most cases, it is probably more efficient to render the entire document once and for all with jinja and then pass it to pandoc.
-
Jinja conditionals and loops are not supported.
Install
pip install pandoc-jinja
Similar filters
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License
- Author: Damien Clochard
- Requires: Python >=3.7
Classifiers
- License
- Operating System
- Programming Language
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pandoc-jinja-0.1.3.tar.gz
.
File metadata
- Download URL: pandoc-jinja-0.1.3.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
2bf2ec987f8cdac015e85df4d230002e8243cc1ed603ccccc13c401a506c4606
|
|
MD5 |
dd57dea347f26794f8ce9aefaef8e319
|
|
BLAKE2b-256 |
4678c6c3eb08d79ae1939b27093a704080528336cf68dcae921152d7be9c4594
|
File details
Details for the file pandoc_jinja-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: pandoc_jinja-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
9ad70235c5bcccab7eb66ddea9a277e3db7b6f137bacaa8f8885f3a1b4d23e36
|
|
MD5 |
0e8eddb33e8b7dd5181eac6c577eda59
|
|
BLAKE2b-256 |
f6c1274c51ccab7bb012c58ddd164ca6051ff68591391f3260175a5cd0a61fd7
|