Open brokenairplane opened 7 years ago
here's an old project that does this: https://github.com/mangini/gdocs2md
But it doesn't appear to be maintained and the script isn't functional as far as i can tell.
Sounds like something to have in mind for future if anyone wants to help :hugs:
I've had to tackle this recently, the best way I've found is to download the Google Slide as pptx, then convert the pptx to markdown with https://github.com/ssine/pptx2md in python
It works very well. The latest version is not up on python's package manager, so it's best to install from github like this:
pip install git+https://github.com/ssine/pptx2md.git
Then you can just run:
pptx2md input_file.pptx -o output_file.md
Working very well for me, including correctly formatted tables etc.
There's also example code here for using JavaScript to download a specific google slides file as PPTX using the Google Drive API, so if you want to do the whole google slides -> markdown in code, you can combine those two.
It would be helpful to be able to convert from Slides back to Markdown so the text could be the source of truth and checked into a repo.