conda install pandoc
Then to convert to "github flavored markdown (gfm)" saving all figures in a folder called "media" in the current directory.
pandoc --to gfm --extract-media='.' week01WS01.docx -o week01S01.md
The result: week01S01.md
Issues
- figures need to be included with
<img>
tags and sized correctly. - Tables unlikely to render correctly
- superscripts and subscripts need editing (I have a regular expression filter for that)
export cdocs=~/repos/convert_docs
cd $cdocs
conda install conda-lock
conda-lock -f environment.yml -p osx-64
conda create --name convert --file conda-osx-64.lock
conda activate convert
cd ~/google_drive/e340_convert/Day_01_Intro/Slides
python $cdocs/scripts/image_extract.py Day01_IntroClass_2019t2.pptx media
python $cdocs/scripts/build_notebook.py Day01_IntroClass_2019t2.pptx media