Automatically map embedded images to IdealImage
planned
Joshua Chen
planned
This is not hard (and something we plan). All Markdown components can be mapped to other components, for example, we map
pre
blocks to our own CodeBlock
. We can let the IdealImage declare mapping from img
to IdealImage
by wrapping the previous theme's MDXComponents
registry. However, the pressing issue is https://github.com/facebook/docusaurus/issues/4530, which means if the ideal image plugin wraps the MDX component registry, other themes can't register more components anymore. We would need to fix that first.