Skip to content

Converting Google Docs to markdown

Eddie A Tejeda edited this page Apr 16, 2019 · 2 revisions

Converting Google Docs to markdown

Step 1: Download the post as a Microsoft Word (docx) file

Pandoc (installation instructions) converts Google Docs best when they're downloaded as Microsoft Word files. These are the steps to download the google doc as a docx:

  1. Open the blog post in Google Docs

  2. Click "File" and hover your mouse over "Download As"

  3. Choose "Microsoft Word (docx)"

Step 2: Turn the Microsoft Word (docx) file into markdown (md)

Find the file and save it to the same location as your local site. Now through terminal we'll use pandoc to convert the docx file to an md file:

  1. Open terminal and access your local site

  2. Then enter the following commands to convert the file

pandoc document-name.docx -o folder/document-name.md

  1. If successful your markdown file will appear in the local site in the assign folder