diff options
author | Franck Cuny <fcuny@twitter.com> | 2017-11-07 08:47:26 -0800 |
---|---|---|
committer | Franck Cuny <fcuny@twitter.com> | 2017-11-07 08:47:26 -0800 |
commit | 28cadb970ca0b1ae6cde58d09eadb6af89999ddf (patch) | |
tree | 3f3d0096bc041ed74868872c43beb9612afebc75 /bin/md-preview | |
parent | [emacs] add scala-mode (diff) | |
download | emacs.d-28cadb970ca0b1ae6cde58d09eadb6af89999ddf.tar.gz |
Remove bin, this is now in it's own repo
Diffstat (limited to 'bin/md-preview')
-rwxr-xr-x | bin/md-preview | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/bin/md-preview b/bin/md-preview deleted file mode 100755 index 07d06e5..0000000 --- a/bin/md-preview +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash - -# Render a markdown file to HTML, as a preview. - -set -e - -INPUT="${1:-README.md}" -OUTPUT="${2:-/tmp/output.html}" - -if [ ! -f "${INPUT}" ]; then - echo "You need to specify an input file" 1>&2 - exit 1 -fi - -[ -e "${OUTPUT}" ] && rm "${OUTPUT}" - -pandoc -f markdown_github -c https://goo.gl/OVmlwT --self-contained -o "${OUTPUT}" "${INPUT}" - -if [ -e "${OUTPUT}" ]; then - open "${OUTPUT}" -else - echo "Failed." - exit 1 -fi |