MdXaml
MdXaml copied to clipboard
Image Scaling and Gif support
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!
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.
{width=2cm}
{ width = 4cm }
{width=50%}
{width=100%}