Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Markdown Imsize SupportNew to Visual Studio Code? Get it now.
Markdown Imsize Support

Markdown Imsize Support

Alexander Moosbrugger

|
6,489 installs
| (2) | Free
Adds size-specified image syntax support to VS Code's builtin markdown preview
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-markdown-imsize

Adds markdown-it-imsize syntax support to VS Code's built-in Markdown preview. Overloads original markdown-it image renderer.

Features

Using markdown-it-imsize syntax the size of images can be specified in the markdown document. When viewing the document using VS Code's built-in Markdown preview, the image file will be resized accordingly.

Syntax

Using pixel for image size specification

![sample](https://github.com/amoosbr/vscode-markdown-imsize/raw/master/sample-image.png =200x100)

is interpreted as

<p><img src="sample-image.png" alt="sample" width="200" height="100"></p>

Note: Width or height can be omitted. In this case the aspect ratio is honored during resize.

![sample](https://github.com/amoosbr/vscode-markdown-imsize/raw/master/sample-image.png =200x)
or  
![sample](https://github.com/amoosbr/vscode-markdown-imsize/raw/master/sample-image.png =x100)

Using percentage for image size specification

![sample](https://github.com/amoosbr/vscode-markdown-imsize/raw/master/sample-image.png =50%x)

is interpreted as

<p><img src="sample-image.png" alt="sample" width="50%"></p>

Examples

Release Notes

0.0.2

Added example images

0.0.1

Initial release suporting markdown-it-imsize syntax

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft