Support image resizing
JohnnyHenver opened this issue · comments
Is your feature request related to a problem? Please describe.
Obsidian established the following syntax to rescale images:
![[og-image.png|200]]
This currently breaks the image links in Perlite.
Describe the solution you'd like
It would be great if Perlite could support scaled images the way Obsidian does.
Describe alternatives you've considered
Scaling the images outside of obsidian is valid, but kind of a hassle.
This would be great. As an example, currently ![[image.png|100]]
is parsed as a plaintext !
followed by the renamed wikilink to image.png:
We can convert all images beforehand, but it'd be awesome to have them rescale in Perlite. And if not, it'd be nice if the image itself still appeared.
I'm taking guesses because of my unfamiliarity with the codebase, but is this issue occurring in Parsedown.php at the inlineImage
call?
Lines 1224 to 1238 in ac8c431
And thus does it stem from the regex calls in the inlineLink function in PerliteParsedown.php?
Perlite/perlite/PerliteParsedown.php
Lines 498 to 560 in ac8c431
Trying to wrap my head around it...
This is fixed in version 1.5.3