From 69e23af8e4198dc4e308935855662248a31c6dc2 Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Sun, 12 Nov 2006 01:50:56 +0000 Subject: 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 --- README | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'README') diff --git a/README b/README index 30193edb7..265285e56 100644 --- a/README +++ b/README @@ -141,6 +141,19 @@ is in the path, and some have additional requirements. (For example, creates a file `mytextfile.pdf`. +If you want to use pandoc's command-line options in these scripts, +put the options in the environment variable `PANDOC_OPTS`. For +example, to convert `tusks.txt` to `tusks.html` using smart quotes, +ellipses, and dashes, with "Elephants" as the page title prefix: + + PANDOC_OPTS="-S -T Elephants" markdown2html tusks.txt > tusks.html + +To make these options persistent, use `export`: + + export PANDOC_OPTS="-S -T Elephants" + markdown2html tusks.txt > tusks.html + markdown2html trunk.txt > trunk.html + # Command-line options Various command-line options can be used to customize the output. -- cgit v1.2.3