Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Markdown Inline SVGNew to Visual Studio Code? Get it now.
Markdown Inline SVG

Markdown Inline SVG

saeris

|
554 installs
| (0) | Free
Inline SVG images in VSCode's markdown preview
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Markdown Inline SVG

Inline SVG images in VSCode's markdown preview.

Overview

Any Markdown image that points to a local .svg file is replaced inline with the SVG's own markup in the preview — so it renders as a true vector element you can theme and style, instead of a flat <img>.

Unlike the other extensions in this family, this one runs as a small preview script rather than a markdown-it plugin: it finds <img src="….svg"> in the rendered preview and swaps each one for its inlined <svg>.

Syntax

Reference a local SVG as you would any image:

![A diagram](https://github.com/mirrordown/mirrordown/raw/HEAD/diagram.svg)

In the preview the <img> becomes an inline <svg>. The image's alt, class, and inline style carry over to the <svg> element — handy for sizing or theming (the alt becomes an aria-label):

![Logo](https://github.com/mirrordown/mirrordown/raw/HEAD/logo.svg){ .icon style="width: 1.5rem" }

The { … } attribute syntax above is provided by the companion Markdown Attrs extension.

About

Part of Markdown Preview Extended Syntax — a pack of Markdown preview syntax extensions you can install all at once.

Source on GitHub.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft