MdXaml icon indicating copy to clipboard operation
MdXaml copied to clipboard

Image Scaling and Gif support

Open casrom opened this issue 1 year ago • 1 comments

Thank you for the great library!

I'm wondering if it's possible to add support for scaling images, as well as supporting gifs? or is it possible to achieve these without modifying the library? Scaling image syntax example:

[image](example.png[150%])

I know image scaling is not part of the Markdown syntax, but would love to hear your opinion on this. Thanks!

casrom avatar Apr 27 '23 01:04 casrom

If you use MdXaml.Html, it support image scaling with width property.

<img src="LocalPath.png" width="2cm">
<img src="LocalPath.png" width="4cm">

<img src="LocalPath.png" width="50%">

<img src="LocalPath.png" width="100%">

The new version 1.19.0 has extended syntax for indicating the width of an image. it is adopted from GitLab Flavored Markdown.

![](LocalPath.png){width=2cm}
![](LocalPath.png){  width = 4cm  }

![](LocalPath.png){width=50%}

![](LocalPath.png){width=100%}

image

whistyun avatar May 14 '23 11:05 whistyun