Hi, I’m trying to make my own code block enhancement plugin for Obsidian.
I make a markdown post processor to do so, referencing other famous code block enhancement community plugins like Better Code Block plugin and Code Block Enhancer.
But it seems like markdown post processors work once when the markdown note(source view) is rendered to HTML(reading view) for the first time after the vault has been opened. I think it is happening because Obsidian keeps some kind of HTML(reading view) cache for the performance.
So here’s my question. Is there an event triggered when the markdown note(source view) has been changed? I may register listener to re-render the whole markdown(or hopely only code blocks) to HTML(reading view) if such thing exists. Or, is there an API that can force re-rendering markdown(or hopely only code blocks) to HTML(reading view)?