When converting markdown string to HTML content, img will be convert to an actual <img> tag.
What I want is allow user to click on that image, then pop out a modal, where user can visit a bigger size of iamge.
If <img> tag can be replaced by a custom Vue component, then everything will be simpler.
But how can I do that?
VuePress 2 and VitePress both allow you to use Vue 3 components directly in Markdown files.
Example markdown with Vue SFC: