Retaining TOC from Markdown document after PDF conversion

Thanks @Chrillek.

I saw those proof of concept scripts and they seem promising. However, due to the number of Markdown documents I need to convert, only something that could be run via a smart rule on a group’s contents would be feasible.

For me personally, it would not be trivial to modify the scripts accordingly because I am inexperienced with javascript.

In case it would be for you, I would greatly appreciate a smart rule capable version of the script you posted recently.

And my guess is that others here might find it useful as well :wink: