Pandoc plugin do not find pandoc

Hey @anon26336935,
the easiest thing to do in this case would be to start Inkdrop via a console that contains the changes to the path variable.

Otherwise you can also introduce a workaround in Inkdrop via the init.js file. (The init file - Inkdrop API Reference)
To do this, you can edit the environment variables of the process when starting Inkdrop. You can enter this in your init.js. Change the value of pandocPath to your path to the folder containing the pandoc executable. Please make sure that you use the correct separator. In my case (Linux - Ubuntu) it is the : at the beginning.

const pandocPath = ":/home/test/Desktop/pandoc-3.1.11.1-linux-amd64/pandoc-3.1.11.1/bin"
if (!process.env.PATH.includes(pandocPath)) {
    process.env.PATH = process.env.PATH + pandocPath
    inkdrop.notifications.addInfo("added Pandoc to the path", {dismissable: true});
}

The best solution is of course that the plugin author supports entering the path to the pandoc executable in the settings.

I hope this helps you.

2 Likes