#docs #markdown #google #convert

bin+lib docs_to_markdown

Tool to convert Google Docs to Markdown

3 releases

0.1.4 Feb 9, 2023
0.1.3 Dec 14, 2022
0.1.2 Dec 12, 2022
0.1.1 Dec 12, 2022
0.1.0 Dec 12, 2022

#1221 in Development tools

MIT license

14KB
124 lines

Convert Google Docs to Markdown.

Docs to Markdown

Do you like the editing capability of Google Docs and wish I can edit a README.md with it?

This tool will help you convert a published Google Docs to Markdown easily. In fact, this README.md is from this docs.

Now you can have awesome spell check, grammar correction, and link insert, picture view, tables, and many more.

Supported features

  • Header
  • Link
  • Table
  • Image
  • List

Install

Using Rust cargo tool.

cargo install docs_to_markdown

How to use

Create a Google Document and make your edits

Publish the document

Using cli

# Export to output
docs_to_markdown <PUBLISH_LINK>

# Export to README.md file
docs_to_markdown <PUBLISH_LINK> > README.md

# Export and copy to clipboard
docs_to_markdown <PUBLISH_LINK> | pbcopy

Using Cloudflare Worker

Please use this endpoint sparingly. I’m running it on a free tier Cloudflare Worker. If you can, feel free to host your own for your convenience.

curl --request POST 'https://docs-to-markdown.chop.dev/' \
     --header 'Content-Type: application/json' \
     --data-raw "{\"url\": \"$PUBLISH_LINK\"}"

License

MIT

Copyright (c) 2022-, Quang Tran.

Dependencies

~9–22MB
~313K SLoC