I am working on getting the Pelican site swanlotus.netlify.app to build successfully.
It is currently failing because the Pandoc version on the Xenial image is not the latest supported by a plugin that I use to convert Pandoc markdown to HTML5.
The plugin looks for the pandoc executable but because I have no way of setting the pandoc command to use the latest version of Pandoc which I download manually the pages and posts of the site fail to build.
Is there a way for me to make pandoc point to my downloaded version. I have tried setting the path variable and alias in my script and even tried using a symbolic link but none of them seem to work.
Do you have any workaround or is there a way to remove the installed pandoc.
Kindly let me know if you need any additional information.
Thank you for your reply @perry. I got around the issue by installing the version of Pandoc I needed for my plugin by adapting the script given here.
I also modified my plugin to take a non-standard location for the pandoc executable.
Regardless of the images being open-source I was not able to make the Pandoc I downloaded become the default Pandoc on the image after trying several methods and I was wondering if that was even possible.
Ubuntu’s Pandoc is ancient and the method I used above seemed to be the best workaround.
Is Netlify planning to allow users to use pre-built custom docker images or a docker image from docker hub sometime in the future?
Hi @navanitachora! Unfortunately, the fact that the build images are open source doesn’t allow them to be customized for use in our system, and we also don’t have any near-term plans to support arbitrary custom docker images.
However, it does meant that you can:
File issues. We check these issues regularly, answer questions when we can, and track feature requests when planning future development. (We’re currently planning the next image version, so your input is valuable!)
Add your input to other issues and feature requests. You can find a couple of pandoc-related issues in there already.
Possibly submit a PR to update the Pandoc version (set here). If it’s not a breaking change, we might be able to merge it in the current image. (You can file an issue first to ask, if you like.)
In addition, you might be interested in this workaround. We’re currently experimenting with using Homebrew (technically Linuxbrew) in the Xenial build image. You can install the latest available Pandoc version by saving a Brewfile.netlify in your site’s base directory with the line, brew "pandoc". I tested this in a build and pandoc --version returned 22.214.171.124. (Previously, it returned 2.4.)
Welcome to Netlify Forums! My apologies for the slow response here. I wanted to reach out and let you know that I have shared your message with our team, and we will follow up on this thread once we have more information for you!