I had the exact same problem and ended up building a tool, mdsf, that allows you to run "ordinary" code formatters like Black, Rustfmt and (Plus 100+ more) on markdown files.
https://github.com/hougesen/mdsf