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 size #694

Open
activivan opened this issue Apr 16, 2024 · 2 comments
Open

Image size #694

activivan opened this issue Apr 16, 2024 · 2 comments

Comments

@activivan
Copy link

Hey there,

please add functionality to change the image size (e.g. like in Obsidian with ![Alt|100x100](/image.png))

Regards!

@geoffreymcgill
Copy link
Contributor

Setting a custom size for the image is possible by passing a custom attribute configuration.

![Alt](/image.png){ width=100 height=100}

The |100x100 syntax is clean. I'll think about adding support for this option into Retype. I'm not sure it's a great place in the Markdown to add attributes since there is already a well adopted format for attributes using the { attr... } syntax. I'll think about it though.

@activivan
Copy link
Author

Maybe mention this in the documentation of the image component?

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