Changing an IMG URL during rendering live preview

Hello,

I am trying to switch out the url for an image, but not in the source markdown.

For example, in my notes file, I want to have:

![](https://someserver.com/images/image1.png)

But, I need to change the URL to something like “http://localhost:9999/somepath/images/image1.png”.

I’d rather not edit all my Notes, but simply have my plugin change the URL of the image to be fetched.

I successfully did this using a MarkdownPostProcessor for “Reading Mode”, but was hoping to have it work for the “livePreview” mode as well.

I tried playing with a ViewPlugin, and I can change how it’s rendered, but the image that gets pulled is still the “original” URL.

Any help is appreciated.
Marc