I deleted my previous comment since it was irrelevant. Yes, you are right. I wanted to write markdown files and make them as posts. So I wrote that piece of code that, looks for md files as well, in addition to Google Doc files – for publishing as posts.
Helps me write code-blocks heavy posts in markdown directly in Google Drive, using markdown extensions. Google Docs is yet to support code blocks and by now I doubt they ever will :(