@denism7 the markdown plugin exposes a hook that I think should work?

https://github.com/julianlam/nodebb-plugin-markdown/blob/b248150a2626ccfdf90d7771a84e39613589e2fc/index.js#L420