View live: https://davepagurek.github.io/google-docs-to-markdown/
This is a form of Mr0grog/google-docs-to-markdown, but adjusted to fit the needs of p5.js documentation generation. Specifically:
- It makes sure lists do not have newlines between them so that they form "tight lists"
- It uses HTML syntax for tables so that it supports code and images within table cells
- It always uses three-backtick code fences for consistency
This is a very minimal webapp for converting a Google Doc to Markdown. It uses Remark and Rehype (both part of Unified) to do the conversion.
First make sure you have Node.js installed. Then:
-
In the directory where you have cloned this repository, run
npm install
:> cd /path/to/cloned/repo > npm install
-
For a one-time build, run:
> npm run build
β¦and the built output will be in the
dist
folder.To start a server with live rebuilding, run:
> npm start
Then point your browser to
http://localhost:9000
to see the site. It will automatically rebuild whenever you change any files.
This project is open source, and gets better with the hard work and collaboration of multiple people. Thanks to the following for their contributions:
Contributions | Name |
---|---|
π» | Michael Bianco |
π§ π» π |
Rob Brackett |
π» | TamΓ‘s Halasi |
π» |
Jack Kingsman |
π» | Peter Law |
π π | Marcin Rataj |
π» | Ben Sheldon |
(For a key to the contribution emoji or more info on this format, check out βAll Contributors.β)
GDoc2MD is open source software. It is (c) 2018-2022 Rob Brackett and licensed under the BSD license. The full license text is in the LICENSE file.