Skip to content

Instantly share code, notes, and snippets.

@jackkinsella
Last active March 10, 2021 15:31
Show Gist options
  • Save jackkinsella/b6415e23a9304b41ea7799a26c8e7bf3 to your computer and use it in GitHub Desktop.
Save jackkinsella/b6415e23a9304b41ea7799a26c8e7bf3 to your computer and use it in GitHub Desktop.

Revisions

  1. jackkinsella revised this gist Jul 19, 2016. 1 changed file with 2 additions and 3 deletions.
    5 changes: 2 additions & 3 deletions convert-word-files-to-markdown.sh
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,3 @@
    for filename in edited/*.docx;
    do
    pandoc -s $filename -t markdown_mmd --extract-media media --wrap=none --smart --normalize -o "`basename $filename .docx`".md
    for filename in edited/*.docx; do
    pandoc -s $filename -t markdown_mmd --extract-media "media-`$filename | cut -d- -f1-2`" --wrap=none --smart --normalize -o "`basename $filename .docx`".md
    done
  2. jackkinsella created this gist Jul 19, 2016.
    4 changes: 4 additions & 0 deletions convert-word-files-to-markdown.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    for filename in edited/*.docx;
    do
    pandoc -s $filename -t markdown_mmd --extract-media media --wrap=none --smart --normalize -o "`basename $filename .docx`".md
    done