shd101wyy / vscode-markdown-preview-enhanced

One of the "BEST" markdown preview extensions for Visual Studio Code
https://shd101wyy.github.io/markdown-preview-enhanced
Other
1.45k stars 173 forks source link

[BUG] connection to internal kroki server for plantuml rendering via https does not work #1933

Open mirweb opened 7 months ago

mirweb commented 7 months ago

Describe the bug A clear and concise description of what the bug is.

Environment

To Reproduce Steps to reproduce the behavior:

  1. Configure markdown-preview-enhanced.plantumlServer with an internal kroki server, that is reachable over https (example "markdown-preview-enhanced.plantumlServer": "https://kroki.corp:8000/"
  2. Restart vs code
  3. Open a simple markdown file, with included plantuml render and open Prview Enhanced Preview on the side
  4. plantuml can not be rendered because of
    FetchError: request to https://kroki.corp8000/ failed, reason: unable to verify the first certificate

    Expected behavior Able to render the plantuml. Or to know, where to configure the additonal certificate (is java used by Markdown Enhanced Preview? Which java?)

Markdown file

Kroki Integration

You can use it inline like this:

  Bob -> Alice : hello
  Alice -> Bob : hi
weixiaolv commented 3 weeks ago

Config vscode proxy to access kroki.io in settings.json for online image generation

  "http.proxy": "socks://127.0.0.1:7890",

or install a Self-Managed instance local,change settings.json

  "markdown-preview-enhanced.krokiServer": "https://kroki.myserver.local"