Publié à l'aide de Google Docs
docs-to-markdown
Mise à jour automatique effectuée toutes les 5 minutes

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

Install

Using Rust `cargo` tool.

```bash

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

```bash

# 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.

```bash

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.