lishu / vscode-svg2

A vscode svg langauge support extension
MIT License
200 stars 10 forks source link

Locally sourced `<image>` objects don't render in preview #138

Closed craxal closed 1 year ago

craxal commented 1 year ago

If I add an image element to an SVG file:

<image width="100" height="100" xlink:href="LocalImage.jpg">
</image>

The preview does not render the image. But I know it's correct, because web browsers render the image correctly.

lishu commented 1 year ago

Preview is limited with vscode webview security and cannot load your local files directly.

The relevant conversion processing will be implemented later.