Skip to content

Instantly share code, notes, and snippets.

@khatchad
Created November 23, 2020 16:58
Show Gist options
  • Save khatchad/d5f0c92bf000c5cdea00a5014ed9fadb to your computer and use it in GitHub Desktop.
Save khatchad/d5f0c92bf000c5cdea00a5014ed9fadb to your computer and use it in GitHub Desktop.
Converts doc files to GitHub flavored markdown in ASCII
#!/bin/bash
INPUT=$1
OUTPUT=$2
/usr/bin/pandoc "$INPUT" -t gfm --wrap=none | /usr/bin/uni2ascii -B > "$OUTPUT"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment