Strongly disagree. Pandoc is the only solution I could find that outputs static HTML and supports maths. It's a really great solution. And it's pretty fast. I don't know in what way it could be overkill.
Using a hacky M4 script instead of Pandoc is completely insane. Find if you want to do insane things I guess but it's still insane.