The PandocPrjFilter can be integrated into Pandoc and removes all code blocks with the prj
tag.
This means that corresponding code blocks can also be used in documents that are to be converted later with Pandoc.
The prj
code blocks belong to the obsidian-prj plugin from my hand.
- The Python file (
PandocPrjFilter.py
) must be copied to the pathC:\Users\[USERNAME]\AppData\Roaming\pandoc\filters
. - Pandoc must then be called with the command line option
--filter=PandocPrjFilter.py
.
Der PandocPrjFilter kann in Pandoc eingebunden werden und entfernt alle Codeblöcke mit dem prj
-Tag.
Dadurch können entsprechende Codeblöcke auch in Dokumenten verwendet werden, welche später mit Pandoc konvertiert werden sollen.
Die prj
-Codeblöcke gehören zum obsidian-prj-Plugin aus meiner Hand.
- Die Python Datei (
PandocPrjFilter.py
) muss in den PfadC:\Users\[USERNAME]\AppData\Roaming\pandoc\filters
kopiert werden. - Dann muss Pandoc folgend mit der Kommandozeilenoption
--filter=PandocPrjFilter.py
aufgerufen werden.