vscode-plantuml icon indicating copy to clipboard operation
vscode-plantuml copied to clipboard

markdown .md file preview broken

Open tunezae opened this issue 3 years ago • 3 comments

I always draw PlantUML graph in a single .puml file before, and the preview works well but when I embed plantuml code in markdown file, like the way in the plugin description, then I got a borken image in markdown preview.

after I set plantuml server address to an online plantuml render serve, the preview works well then.

but I only want to use local bundled plantuml render instead of online server, could you please check this? 屏幕快照 2021-07-30 下午12 45 29 下午

tunezae avatar Jul 30 '21 04:07 tunezae

Similar situation. I've confirmed PlantUML is correctly installed, and the extension correctly configured: I can see a preview of my sequence diagram if I use ⌘⇧P PlantUML: Preview Current Diagram with the cursor inside the plantuml or plantumlcode fenced code block. ⌘⇧P Toggle Output then selecting PlantUML from the right-hand dropdown shows no log entries.

garthk avatar Aug 11 '21 23:08 garthk

I have the same issue. Ubuntu 21.04 + VSCode 1.60.0 Alt-D to start PlantUML preview works.

FQ211776 avatar Sep 03 '21 00:09 FQ211776

Did you setup the settings in Visual Studio Code?

Adding these lines to settings.json worked for me :)

  // PlantUMLServer: Render diagrams by server which is specified with "plantuml.server". It's much faster, but requires a server.
  // Local is the default configuration.
  "plantuml.render": "PlantUMLServer",

  // Plantuml server to generate UML diagrams on-the-fly.
  "plantuml.server": "http://www.plantuml.com/plantuml",

estyxx avatar Nov 17 '21 20:11 estyxx