Skip to main content

Render pandoc metadata variables inside the document

Project description

PyPI version


Render pandoc metadata inside the document itself


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 --filter=pandoc-jinja --metadata=name:world
<h2 id="title">GREETINGS !</h2>
<p>Hello, world !</p>


  • 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.


pip install pandoc-jinja

Similar filters

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pandoc_jinja-0.2.4.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

pandoc_jinja-0.2.4-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page