diff options
Diffstat (limited to 'markdown2html')
-rw-r--r-- | markdown2html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/markdown2html b/markdown2html index 04ccf4c49..3c8647d77 100644 --- a/markdown2html +++ b/markdown2html @@ -22,10 +22,10 @@ for p in pandoc; do done ALL="$*" -ARGS=${ALL%%-- *} -REST=${ALL#$ARGS} +ARGS=${ALL%% -- *} # only the part before ' -- ' delimiters is relevant +set -- $ARGS -REST=${REST#--} +REST=${ALL#$ARGS}; REST=${REST#--} PANDOC_OPTS=${REST:-$PANDOC_OPTS} -iconv -t utf-8 $ARGS | pandoc $PANDOC_OPTS | iconv -f utf-8 +iconv -t utf-8 $* | pandoc $PANDOC_OPTS | iconv -f utf-8 |