aboutsummaryrefslogtreecommitdiff
path: root/latex2markdown
diff options
context:
space:
mode:
Diffstat (limited to 'latex2markdown')
-rw-r--r--latex2markdown32
1 files changed, 0 insertions, 32 deletions
diff --git a/latex2markdown b/latex2markdown
deleted file mode 100644
index 3974f279a..000000000
--- a/latex2markdown
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/bin/sh -e
-# runs pandoc to convert latex to markdown
-
-pathfind () { # portable which(1), code taken from Debian Developer's Reference
- OLDIFS="$IFS"
- IFS=:
- for _p in $PATH; do
- if [ -x "$_p/$*" ]; then
- IFS="$OLDIFS"
- return 0
- fi
- done
- IFS="$OLDIFS"
- return 1
-}
-
-for p in pandoc; do
- pathfind $p || {
- echo >&2 "You need '$p' to use this program!"
- exit 1
- }
-done
-
-ALL="$*"
-ARGS=${ALL%% -- *} # only the part before ' -- ' delimiters is relevant
-set -- $ARGS
-
-REST=${ALL#$ARGS}; REST=${REST# -- }
-PANDOC_OPTS=${REST:-$PANDOC_OPTS}
-
-iconv -t utf-8 $* | pandoc $PANDOC_OPTS -r latex -w markdown -s | \
- iconv -f utf-8