Scenario: For the pages of some sections, I need a pretty heavy preprocessing, which I implemented in python as a pandoc filter, and then I set defaultMarkdownHandler: pandoc.
This works, but it’s extremely slow. Commenting out the defaultMarkdownHandler config line, it takes 20 times less for the whole website (which is pretty small, too).
I assume that the overhead of spawning pandoc, which in turn spawns python, for every page and for every markdownify, is to blame.
So, is there a way to specify which handler to use on a per-page level? Here it says some markdown config can be overridden, but not which or how.