Image file path error while using pandoc for markdown to pdf conversion
03:01 05 Dec 2022

I have a markdown file with images in the same directory as the .md file, e.g. with ![Image test ](test.png) in the .md file.

I convert them into pdf throughpandoc:

pandoc --standalone --pdf-engine=xelatex file.md -o output.pdf 

and I get the following error

[WARNING] Could not fetch resource 'test.png': replacing image with description

However, with the same directory I have no issues while converting .md into .html output. Can someone suggest what is the issue with pandoc?

pdf markdown pandoc