docs_to_markdown 0.1.4

Tool to convert Google Docs to Markdown
Documentation

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

Get the published link

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.