Provide custom image adapter #442
Replies: 3 comments 1 reply
-
|
Sounds good to me — very happy to take such a PR. I'm starting to think about ways to make the renderer more pluggable/overridable in general, rather than with piecewise plugins that target each node type. Assortment of (incompatible) ideas:
Ideally we want composability without sacrificing too much in the way of speed. Let me know if you have any thoughts! |
Beta Was this translation helpful? Give feedback.
-
|
Came here looking for custom plugins as well. My use case is adding support for MkDocs-style |
Beta Was this translation helpful? Give feedback.
-
|
A custom image adapter can now be implemented on the user side with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Akin to issues #253 and #267, I like to provide custom image rendering whenever possible. To give an example, I often like to wrap the image in a
figureelement, display the title as afigcaption, and make the image clickable. Basically turning this...![My caption)(/img/foo.png)...as this:
One of many possible use cases, of course, but nice to have. As with #257 and #266 I will submit a PR.
Beta Was this translation helpful? Give feedback.
All reactions