-
Notifications
You must be signed in to change notification settings - Fork 49
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
Feature request: allow specfying image dimensions #24
Comments
It's a good idea. But my main concern is that GitHub doesn't support it (it adds it to the url, which breaks the image). @Soreine @AaronO @jpreynat What do you think? It might still be a better idea than using a templating tag ( |
Is templating tag syntax supported already? It doesn't seem to work in GitBook editor |
I saw this proposal http://fletcher.github.io/MultiMarkdown-5/attributes.html But this...
... is not valid GFM because there's something after the "Alt text". I could also think of some really ugly things like this:
As far as it concerns Concerning |
It would also be nice to support relative sizing. Sometimes I know, that an image should be centered and only take maximum 50% of the page width. Another thing is that using html in the desktop version of gitbook doesn't seem to take my size arguments correctly and the image width always takes 100% of the page width. |
BTW, now github supports it using img tag with width/height attributes, here's a diagram I added at 50% scaling that looks super-crisp on retina displays: |
@fruch totally agree... +1 for this feature |
👍 |
+1 for this feature. No excuse now that Github supports it. Its been years. Sad to see Gitbook abandoning their user-base. |
+1 |
+1, this prevents retina images |
Some markdown engines support syntax like below to specify image dimensions, but it doesn't seem to work in markup-it
![](./pic/pic1_50.png =100x20)
This is important for SVG files since there's no dimension information in the file, and also for PNG file that you want to look nice on Retina displays (logical size must be 50% of the pixel size)
The text was updated successfully, but these errors were encountered: