https://github.com/iloveitaly/markdown-to-google-docs
A CLI and libs to convert markdown to Google Docs
https://github.com/iloveitaly/markdown-to-google-docs
docs google markdown
Last synced: about 2 months ago
JSON representation
A CLI and libs to convert markdown to Google Docs
- Host: GitHub
- URL: https://github.com/iloveitaly/markdown-to-google-docs
- Owner: iloveitaly
- Created: 2024-03-05T23:47:00.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-15T11:54:32.000Z (about 2 years ago)
- Last Synced: 2025-02-03T21:54:43.258Z (over 1 year ago)
- Topics: docs, google, markdown
- Language: TypeScript
- Homepage: https://github.com/iloveitaly/markdown-to-google-docs
- Size: 65.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Convert Markdown to Google Docs
Google does not have a way to convert HTML or Markdown to Google Docs. This little project takes incoming Markdown, parses it into an AST tree, and then transforms that to Google Docs API requests, which generate the resulting document.
> [!IMPORTANT]
> This project is abandoned. Google Docs supports markdown, at least sort of. You can't update a document once it has been created but you can upload a document in markdown. The main goal of this project was to convert Obsidian documents to
> Google Docs, and the new markdown support is good-enough for that, albeit not awesome.
## Usage
To install dependencies:
```bash
bun install
```
To run:
```bash
bun run index.ts
```
## Transformation
- All block-level formatting elements add a paragraph/newline
## Google API Details
- Newlines create paragraphs
## Google API Scopes
TODO define scopes
google docs api
google drive api
## Development
- `test.only` to run a single test