I am trying to run Pandoc on MS Azure environment to create HTML report from markdown file. The Pandoc command is real simple one.
pandoc test.md -o test.html
But I get the following error.
pandoc: getAppUserDataDirectory:sHGetFolderPath: illegal operation (unsupported operation)
It seems to me that MS Azure has Windows 10 sort of environment. I even tried to set up XDG_DATA_HOME
or XDG_DATA_DIRS
, but it still gives the same error.
Can you someone please help?
getAppUserDataDirectory
is a method within Pandoc, so if it's not working then it's probably an environmental variable issue.--data-dir=DIR
to the directory that contains the files? What is the contents of~/.local/share/pandoc/defaults
? The final command would indeed betest.md -o test.html --data-dir=testdir