Skip to main content

Render a recap of the notes (fenced divs) of the document

Project description

PyPI version

pandoc-recap

Render a recap of the notes inside a document

Example

Write a markdown file, define metadata variable, and use them inside the with double brackets.

# My advices in life

## Chapter 1 - Health

::: tip
Brush your teeth
:::

## Chapter 2 - Friendship

::: tip
Be nice
:::

## Conclusion

::: {#recap .tip .BulletList}

Then call the filter when you generate the document:

$ pandoc foo.md --filter=pandoc-recap
<h1 id="my-advices-in-life">My advices in life</h1>
<h2 id="chapter-1---health">Chapter 1 - Health</h2>
<div class="tip">
<p>Brush your teeth</p>
</div>
<h2 id="chapter-2---friendship">Chapter 2 - Friendship</h2>
<div class="tip">
<p>Be nice</p>
</div>
<h2 id="conclusion">Conclusion</h2>
<ul>
<li>Brush your teeth</li>
<li>Be nice</li>
</ul>

Install

pip install pandoc-recap

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_recap-0.0.2.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

pandoc_recap-0.0.2-py3-none-any.whl (3.9 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