The best approach is probably to convert the MD files to YAML Front Matter and then using an npm package to convert to json.
See also WV#384 (Bring in start/end dates from GC docs into layer descriptions), as this would be a good time to address this issue as well.