-
-
Notifications
You must be signed in to change notification settings - Fork 54
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
Use this plugin with markdown images #90
Comments
Some more context here: https://github.com/markdown-it/markdown-it/blob/master/docs/development.md#i-need-async-rule-how-to-do-it fwiw it doesn’t look like markdown-it handles async plugins |
All the code is put in this gist. 1. Transform images in markdownI am using transforms to achieve this. Since It can cover all images in your website including the ones from markdown files, as long as you set a proper query selector. (i.e., To be noted, I use the variable 2. Use
|
@Alexs7zzh good approach but I don't understand the reason to use 2 stages. All sync/async image transformation can be done in |
Hi @Brixy, I know this is a pretty old discussion and you might already have found a solution or maybe it's not relevant anymore. Anyhow, to answer this:
I just published a markdown-it plugin that uses eleventy-img to process images. Check it out here. If you end up trying it, let me know what you think. |
this looks really good! thanks! |
Great! Let me know what you think. 😄 |
Related: #208 |
The docs have been updated to recommend #208 moving forward for synchronous use cases like Markdown. I think we can consider this one resolved with Eleventy v3.0.0-canary.5 and Eleventy Image v4.0.1. https://www.11ty.dev/docs/plugins/image/#synchronous-shortcode Thanks y’all! |
Thank you for this plugin.
It would be great if it was possible to use this plugin with markdown images.
Some ideas:
figcaption
).Thanks!
The text was updated successfully, but these errors were encountered: