@liaizon According to the Obsidian docs, its Markdown post processing doesn't follow the Markdown-It plugin interface, so it would be probably necessary to write a separate plugin for Obsidian. Although it doesn't seem like it would be very difficult.
https://docs.obsidian.md/Plugins/Editor/Markdown+post+processing