For future visitors: If you end up here looking for a way to convert MD comments to MDX comments with remark and find this repo but are leery because it appears unmaintained, parsing your markdown with https://github.com/remarkjs/remark-gfm and outputting to MDX did the trick for me!
For future visitors: If you end up here looking for a way to convert MD comments to MDX comments with remark and find this repo but are leery because it appears unmaintained, parsing your markdown with https://github.com/remarkjs/remark-gfm and outputting to MDX did the trick for me!