Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image Scaling and Gif support #60

Open
casrom opened this issue Apr 27, 2023 · 1 comment
Open

Image Scaling and Gif support #60

casrom opened this issue Apr 27, 2023 · 1 comment

Comments

@casrom
Copy link

casrom commented Apr 27, 2023

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!

@whistyun
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants