Google Docs To Markdown



Introduction

Markdown Tools is a simple Google Doc add-on which will add heading numbers to the normal headings/styles in a Google docs document. Optionally, it can add the heading numbers along with the. Give it a name, like 'ConvertToMarkdown.' Now your script is saved, and you can run it anytime you like. To run it against a Google Document, just open that document, click Tools, then select.

Google docs markdown editor

I recently sat next to a Google employee on a flight from SFO to Austin, TX.

He works on reporting tools that lean heavily on the Google Apps Script suite of tools.

Google Apps Script now supports virtually all Google Drive doc types (Docs, Sheets, etc.) as well as other Google product offerings (Gmail, Calendar, Hangouts, Maps, etc.).

The tool has come a long way since it was first announced in 2009, over 10 years ago.

Content Authoring

In my work at Netflix, Google Docs is popular for authoring memos.

Memos are collaboratively-authored documents which specify product initiatives and collect team feedback via Google Docs’ commenting features.

Docs

Using the tool at work has reminded me of all the positives of the real-time collaborative use-case:

Google docs markdown support
  • Commenting
  • Task assignment
  • Tracking changes
  • Shallow learning curve

These positive features led me to seek out ways to incorporate Google Docs into my publishing process for this blog (built with Jekyll). Adventd driver download.

Thankfully, there are pre-existing tools that use Google Apps Script to convert a Google Doc into Markdown text which can be easily incorporated into any website generated from markdown (like Jekyll, Hugo, GatsbyJS):

  • Gd2md-html (closed-source)
  • Gdocs2md (open-source)

I discovered these tools from links via this thorough how-to on outsourcing your content production via interviews.

Libreoffice

Here is a short (14-second) illustration of how the 1st tool works. After clicking those 2 buttons, I copy-paste the outputted markdown text to a new post in my Jekyll repository.

Smooth and easy, baby! 👏😎

Conclusion

Google Docs To Markdown

Anmo cameras. I look forward to using Google Docs in my editing process going forward; for my personal blog (here) and for:

I’m going to make time to re-evaluate Google Apps Script for a number of use cases going forward.

Additional Resources

  • google/clasp: a command-line tool for scaffolding Google Apps scripts
  • Google-apps-script-awesome-list: a big, awesome list of more GAS resources
  • GwTest: a unit-testing framework for your apps scripts

Related Posts

  • 13 Apr 2021 »Chrome Productivity
  • 12 Apr 2021 »Chrome extensions I use
  • 12 Apr 2021 »Jekyll + Emails

The postings on this site are my own and don't necessarily represent my employer’s positions, strategies or opinions.

Google Docs To Markdown Converter

© Mr. Max, 2021