abeleinin / papyrus

📜 Papyrus: Pandoc integration for automatic file conversion in Vim!
MIT License
65 stars 0 forks source link

Cannot use the images inserted in the markdown file #2

Closed meicale closed 1 year ago

abeleinin commented 1 year ago

I added documentation for using fonts and images to the README. Let me know if that clarifies the problem you were having and if you have any other issues feel free to ask. I'm glad you enjoy the plugin!

meicale commented 1 year ago

Thanks for your reply, it is kind for you to update the readme.md. But, I think I know how to add a figure file into md file, use other tools(VSCode) can preview it and convert it directly to pdf using pandoc, it works, too. The source code: image The generated pdf by this plugin: image The pdf generated directly by pandoc: image It can just have the captions of the image, but not the image itself. I think it is caused by the directory problem, the inserted relative path of the image is relative to the current md file. So I have to the use the pandoc command in that directory.

Thank you again!

meicale commented 1 year ago

I will close this issue since this problem does not caused by this plugin. Maybe, something used to specify the cwd of neovim or this plugin may help. Thx!