PyCharm markdown images not working

I'm running Pycharm 2024.1.4 (on Windows 11)

No matter what I try I cannot get images to appear in the preview for the markdown editor.. This also means when exporting with pandoc, the links are broken

I've tried using both markdown and HTML, neither work. I've tried images of different formats (jpg, png, etc) and that doesn't work. I've put the files in different locations including the md folder, the project folder, the system root folder, the system temp folder and the PyCharm installation folder, none of which work

I've also tried drag/drop of a file which uses encoded characters for the path separators…and you've guessed it, that's doesn't work either

The code profiler states "Cannot resolve symbol ‘c:\etc\etc\etc.png’

Anybody else suffering from this? Am I doing something wrong?

1

I've sorted it out so thought it worthwhile updating in case anyone else hits this

I had marked the folder as excluded in the IDE which does mean that it cannot be accessed by plug-ins. Clearing this an closing/opening the markdown file solved my problem

It's all a bit weird though and Jetbrains could do better at providing feedback

  • The IDE knows the folder is excluded so it could tell the user rather than a generic “Cannot resolve symbol” error
  • If the plugin file (the md in this case is inside an excluded folder, the preview tool should still work as long as it doesn't access files outside of its root
  • A folder type of “documentation” should be provided which would allow plug-ins access to the folder but optional exclusions for other processes
1

请先登录再写评论。