Skip to content
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

Desktop: Resize images in Markdown #2226

Closed
wants to merge 3 commits into from

Conversation

devonzuegel
Copy link
Contributor

Opening this just for posterity, because we decided not to go down this route after all in https://discourse.joplinapp.org/t/resize-images/708/13 but it might still be useful for other people to see how to build a markdown-it plugin.

This PR wasn't totally ready to merge before I put it down. There was one unresolved issue around actually loading the image that I didn't resolve.

Here's how the test file looked:

image

… probably the issue is with the loader, not the renderer)
NOTE: Also, there was an issue with the size renderer too, not just
the loader. But it's doing something, because when I remove
markdown-it-imsize the image stops loading entirely.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant