retypeapp / retype

Retype is an ✨ ultra-high-performance✨ static site generator that builds a website based on simple text files.
https://retype.com
Other
1.01k stars 201 forks source link

Image size #694

Open activivan opened 2 months ago

activivan commented 2 months ago

Hey there,

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

Regards!

geoffreymcgill commented 2 months ago

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 commented 2 months ago

Maybe mention this in the documentation of the image component?