qjebbs / vscode-plantuml

Rich PlantUML support for Visual Studio Code.
MIT License
1.09k stars 155 forks source link

markdown .md file preview broken #426

Open tunezae opened 3 years ago

tunezae commented 3 years ago

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 下午
garthk commented 3 years ago

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.

FQ211776 commented 3 years ago

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

estyxx commented 2 years ago

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",