Google Docs can be exported to Markdown via URL change

Google Docs can be exported to Markdown via URL change 图片 1

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:

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论