vscode-markdown-preview-enhanced icon indicating copy to clipboard operation
vscode-markdown-preview-enhanced copied to clipboard

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

Open mirweb opened this issue 1 year ago • 1 comments

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

Environment

  • OS: Windows 10
  • VSCode: 1.86.0
  • Markdown Preview Enhanced: 0.8.11

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

mirweb avatar Feb 05 '24 09:02 mirweb

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"

weixiaolv avatar Aug 26 '24 17:08 weixiaolv