Alternatively, the Easy Bake plugin could also be of use in step 1, merging the markdown files.
You could also use the Enhancing export plugin to interface with Pandoc. Here, you could create a custom command template for merging all files in the current directory, for example. Something like ./*.md -o output.pdf (minimal example without --resource-path and other useful arguments).