summaryrefslogtreecommitdiff
path: root/html2markdown
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2006-11-12 01:50:56 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2006-11-12 01:50:56 +0000
commit69e23af8e4198dc4e308935855662248a31c6dc2 (patch)
tree3bd2ad4e0f5f1e75e828f07f0d5964be4ae6eef0 /html2markdown
parent668a48534edf47d5b65f5589af7ca9350f44a6d3 (diff)
Made wrapper scripts sensitive to PANDOC_OPTS environment variable,
which may contain command-line options to be passed to pandoc. + Changed the scripts themselves, including $PANDOC_OPTS after 'pandoc' + Added ENVIRONMENT to man pages for wrappers + Formatting changes to man files + Added description of PANDOC_OPTS to README git-svn-id: https://pandoc.googlecode.com/svn/trunk@91 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'html2markdown')
-rw-r--r--html2markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/html2markdown b/html2markdown
index 8bae3a3bf..fb5734f39 100644
--- a/html2markdown
+++ b/html2markdown
@@ -12,7 +12,7 @@
}
if [ -z "$1" ] || [ -f $1 ]; then
- tidy -utf8 $1 2>/dev/null | pandoc -r html -w markdown -s | iconv -f utf-8
+ tidy -utf8 $1 2>/dev/null | pandoc $PANDOC_OPTS -r html -w markdown -s | iconv -f utf-8
else
# Treat given argument as an URL. Locate a
# sensible text based browser (note the order).
@@ -35,5 +35,5 @@ else
exit 1 ;;
esac
# Fetch and feed to pandoc.
- $DUMPER $OPT $1 2>/dev/null | tidy -utf8 2>/dev/null | pandoc -r html -w markdown -s | iconv -f utf-8
+ $DUMPER $OPT $1 2>/dev/null | tidy -utf8 2>/dev/null | pandoc $PANDOC_OPTS -r html -w markdown -s | iconv -f utf-8
fi