-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 support for resize #143
Comments
Hello @Dexus. Although it is a nice feature, the original specification does not include it. I believe this should be implemented as post-processing extension and not in the core library. |
@tivie as it is not a breaking change addition, maybe it could be part of core? |
I strongly disagree. Images should have first class support. |
This will probably make it in the next release, as an opt in feature. (means you have to enable it explicitly through options) |
Added this feature as an opt in. To enable it you must use the option var conv = new showdown.Converter({parseImgDimensions: true}); It supports both inline and reference styles: ![my image](foo.jpg =100x80 "some title") or ![my image][1]
[1]: foo.jpg =100x80 "some title" Also you can set the units the dimensions are in (default is pixels (px)) ![my image](foo.jpg =100%x80dpi "some title") |
Great stuff, thank you :) On Wed, 17 Jun 2015 at 01:29 Estevão Soares dos Santos <
|
is it possible that we set the |
@bansalvks you can do it by specifying a star (*) for example : |
hi some markdown dialects support sizes (like the following)
![](./pic/pic1_50.png =100x20)
is ther a plan to support it?
The text was updated successfully, but these errors were encountered: