@MLFromScratchheckyesmarkdown.com sounds like a reasonable tool for the job if it’s a one-off, there are likely similar ones available all based on different underlying parsing/stringifying libraries.
https://unifiedjs.com is a really good go-to resource for doing this sort of thing if you’re a coder :) If you wanted markdown-formatted versions of all your content you could take the html value of posts via Ghost’s Content API and put them through a rehype.parse -> remark.stringify pipeline to get a markdown version (there’s a specific plugin for that).