Google Docs can be exported to Markdown via URL change

Google Docs now supports exporting directly to Markdown by tweaking the URL. Take any Google Doc URL like:
Copy
Replace everything after the document ID with export?format=md:
Copy
If you use curl to test it out, you might get just a 307 redirect:
bashCopy
Pass -L to follow it and get the actual Markdown:
评论
?
参与讨论