This sounds like the answer.

If you're looking to get to the .md files themselves, use Joplin's export feature.