docs_to_markdown

Crates.iodocs_to_markdown
lib.rsdocs_to_markdown
version0.1.4
sourcesrc
created_at2022-12-12 09:16:04.363301
updated_at2023-02-09 08:54:25.88448
descriptionTool to convert Google Docs to Markdown
homepagehttps://github.com/trchopan/docs-to-markdown
repositoryhttps://github.com/trchopan/docs-to-markdown.git
max_upload_size
id734871
size46,527
Chop Tr (trchopan)

documentation

https://docs.rs/docs-to-markdown

README

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.

Commit count: 16

cargo fmt