/google-docs-to-markdown

A minimal webapp for converting Google Docs to Markdown

Primary LanguageJavaScriptBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Google Docs to Markdown

View live: https://davepagurek.github.io/google-docs-to-markdown/

About this fork

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

About the original project

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.

Install & Build

First make sure you have Node.js installed. Then:

  1. In the directory where you have cloned this repository, run npm install:

    > cd /path/to/cloned/repo
    > npm install
  2. 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.

Contributors

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.”)

License

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.