googleworkspace / md2googleslides

Generate Google Slides from markdown
Apache License 2.0
4.49k stars 285 forks source link

Convert from Google Slides back to Markdown #10

Open brokenairplane opened 7 years ago

brokenairplane commented 7 years ago

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.

maglet commented 6 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.

bwplotka commented 4 years ago

Sounds like something to have in mind for future if anyone wants to help :hugs:

paulcalcraft commented 9 months ago

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.