3 releases
0.1.4 | Feb 9, 2023 |
---|---|
0.1.3 | Dec 14, 2022 |
0.1.2 | Dec 12, 2022 |
0.1.1 |
|
0.1.0 |
|
#1024 in Development tools
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
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
Copyright (c) 2022-, Quang Tran.
Dependencies
~9–22MB
~341K SLoC