Panflute is a Pythonic library for writing Pandoc filters. It provides an easy-to-use API to traverse and modify the Pandoc AST. Current version is 2.3.1, compatible with Python >=3.7 and Pandoc 3.1.x. Releases follow Pandoc API updates.
pip install panfluteVerified import paths — ran on the pinned version, not inferred.
Basic Pandoc filter to uppercase all headers. Run with pandoc: pandoc input.md --filter script.py -o output.md
Replace references to pf.Null with appropriate handling (e.g., skip or convert to pf.Plain).
Ensure pandoc version is 3.0+ when using panflute 2.3.0+.
Use pf.run_pandoc() with a filter function for better control.
Update panflute or always provide a caption string.
Run pip install panflute
Add shebang #!/usr/bin/env python3 and ensure the script is executable.
No dependency data recorded yet.