-
Notifications
You must be signed in to change notification settings - Fork 316
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
Add dimension support for images #543
Comments
It looks like the wiki.js markdown renderer supports this from itself, it isn't standard as far as I know. Using the Alternatively you can use plain HTML for images and specify a size like this: <img src="https://placekitten.com/g/500/500" width="50px" height="50px"> I think it will be a good idea to support multiple markdown renderers out-of-the-box, but that would require significant work and I would rather include that in #447. |
I'm not expecting it to be standard, but it is a nice feature :)
The system I am implementing in sanitizes HTML tags in uploaded data, which is why I'm looking for an alternative! Would you consider adding this rendering feature, or be open to a PR? |
No, the editor should never change the way markdown is displayed by default. Any developer can change options for their use-case using the EasyMDE is a markdown editor with a preview function to help with editing, not a markdown renderer, markdown parser or markdown displayer. |
@Ionaru understood, I'll close this out then :) |
Is your feature request related to a problem? Please describe.
It would be useful to be able to specify the size (height / width) of images within the markdown.
Describe the solution you'd like
The ability to specify width / height within the markdown tags. wiki.js offers this feature in their markdown editor:
Describe alternatives you've considered
You can use
<img>
tags but in some systems raw html tags are stripped for security reasons and prevents this approach.The text was updated successfully, but these errors were encountered: