I have a problem with converting my markdown file to docx file using pypandoc. When I try to convert the file using command:
pypandoc.convert_file('container.md', to='docx', outputfile='result.docx'),
I get a file with no pictures and a message: [WARNING] Could not fetch resource image.png: PandocResourceNotFound "image.png". Second part of my problem is the fact that the tables' borders are not visible at all.
When I convert the same file to pdf, I get no issues. Thanks for the help.
For the second part of your problem, I've found the following solution.
Run
pip install python-docxto install the necessary python module.Add the following code to your code.
The code above adds borders to all the tables in
result.docxfile.