vscode-markdown-preview-enhanced
vscode-markdown-preview-enhanced copied to clipboard
[BUG] PlantUML preview seems broken
Describe the bug
When having a README file with an embedded PlantUML diagram, the diagram used to be rendered and displayed as an image in the preview. This seems not to be working anymore.
Environment
- OS: macOS Sonoma 14.2.1
- VSCode: 1.85.1
- Markdown Preview Enhanced: 0.8.0
To Reproduce Steps to reproduce the behavior:
- Create markdown file with embedded PlantUML diagram
- Click on preview
- See raw PNG bytes
Expected behavior The rendered PNG should be displayed as image instead of raw bytes.
Markdown file See screenshot..
Screenshots
Additional context N/A
I bump into similar case, but is under different env.
- OS: Windows 10
- VS Code: 1.88.1
- MPE: 0.8.13
A possible solution that works on Windows:
- [Optional?]Remove All customized settings of markdown-preview-enhanced in settings.json
- uninstall MPE
- turn off all VsCode instance.
- reinstall MPE
- restart VsCode.
Then everything seems to work again in my case.
Details of my case: After I changed some settings of Markdown-Preview-Enhanced(MPE), suddenly both @import puml file and embedded puml got similar error.
I am not for sure which config is the root cause. Tried several settings without luck, including: remove kroki.io setting or make it empty, apply a working plantuml pickweb locally, make plantuml-server empty but give the new plantuml.jar absolute path, ...
At last, I tried reinstallation, then both @import and embedded puml work again.
Root cause is still not being identified, though, my working settings for MPE ver. 0.8.13 are listed below as a clue for further investigation:
"plantuml.jar": "C:/FreeApps/plantuml/plantuml.jar",
"plantuml.render": "PlantUMLServer",
"plantuml.server": "http://localhost:18080/svg/",
"plantuml.exportFormat": "svg",
"markdown-preview-enhanced.alwaysShowBacklinksInPreview": true,
"markdown-preview-enhanced.plantumlJarPath": "C:/FreeApps/plantuml/plantuml.jar",
"plantuml.urlFormat": "svg",
"markdown-preview-enhanced.krokiServer": "",
Lol very weird: I started your process and uninstalled the extension and then restarted vscode. And now the preview with puml works again 🤣. I don't know how or why, but this extension doesn't show up as installed anymore..
it works ok
"markdown-preview-enhanced.plantumlJarPath": "C:\\FreeApps\\plantuml\\plantuml-1.2024.6.jar",