Custom render after embeds are rendered

I’d like to adjust how images are rendered in preview mode and I’d like my plugin to work with ![[image]] notation. It seemed that custom MarkdownPostProcessor was the way to go, but it is called before the embed is loaded. What is the correct way to make changes to the final render? I am currently looking if it can be achieved by editing MarkdownPreviewView contents, but this feels hacky. Am I missing something?

You can use mutaionObserver to handle embed loading