Various filters in Lua and Tcl for the Pandoc document processor
The following filters are provided:
- filter-pikchr.lua - Manual 📙 adding pikchr diagrams to your documentation directly
- filter-python.lua - Manual 📙 - embed and evaluate Python code in Markdown documents, here an HTML example output file for PlantUML code and here an HTML example output file for Pikchr code
- filter-kroki.lua - Manual 📙 - embed diagram code and embed image links using the https://krokio.io webservice, here an example HTML output file
- filter-link-to-html.lua - Manual 📙 - convert Markdown or Rst file extensions in links to HTML extensions
- filter-code-title.lua - Manual 📙 - add code block titles if a title option is given in curly braces for the code chunk
- tcl: pantcl - many filters encoded in Tcl as well as standalone application for document conversion
- lua: abbreviations - the original port did not work with newer pandoc versions
- lua: abstract-section - place the abstract in the document not in the YAML header
- lua: acronyms - create abbreviations and lists of abbreviations
- lua: doi2cite
- add citations using just doi ids
- lua: filters - collection of various Lua filters
Download the filters from: https://github.com/mittelmark/pandoc-filters/archive/refs/heads/main.zip and place them on your harddisk. If you process your document you specify the filters like this:
pandoc input.md -o output.html --lua-filter /path/to/filter-python.py -s
Alternatively you can place the files into your pandoc user directory which you
can find out by writing pandoc -v
in your terminal. If you place your Lua files
into this folder you can use the Lua filters without using the file path like
this:
pandoc input.md -o output.html --lua-filter filter-code-title.lua -s