cmark is an easy to build C project that reads markdown (commonmark, but close enough) that I also write in obsidian, and writes it as xml or html. You can probably automate some of that conversion process, e.g. with xslt, though I'll admit that's an acquired taste.