md2googleslides icon indicating copy to clipboard operation
md2googleslides copied to clipboard

Convert from Google Slides back to Markdown

Open brokenairplane opened this issue 8 years ago • 3 comments

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.

brokenairplane avatar Jul 31 '17 17:07 brokenairplane

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.

maglet avatar Nov 09 '18 20:11 maglet

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

bwplotka avatar Jun 07 '20 14:06 bwplotka

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.

paulcalcraft avatar Feb 14 '24 16:02 paulcalcraft