@@ -48,10 +48,6 @@ The wrapper script `html2markdown` requires
4848 - `iconv` (for character encoding conversion). (If `iconv` is absent,
4949 `html2markdown` will still work, but it will treat everything as UTF-8.)
5050
51−[Cygwin]: http://www.cygwin.com/
52−[HTML Tidy]: http://tidy.sourceforge.net/
53−[`iconv`]: http://www.gnu.org/software/libiconv/
54−
5551The wrapper script `markdown2pdf` requires
5652
5753 - `pandoc` (which must be in the PATH)
@@ -67,6 +63,11 @@ The wrapper script `markdown2pdf` requires
6763 and unpack it into `~/texmf/tex/latex/`. You may also need to run
6864 `mktexlsr` or `texhash` before the files can be found by TeX.)
6965
66+The wrapper script `hsmarkdown` requires only a POSIX-compliant shell.
67+
68+[Cygwin]: http://www.cygwin.com/
69+[HTML Tidy]: http://tidy.sourceforge.net/
70+[`iconv`]: http://www.gnu.org/software/libiconv/
7071[CTAN]: http://www.ctan.org "Comprehensive TeX Archive Network"
7172[unicode]: http://www.ctan.org/tex-archive/macros/latex/contrib/unicode/
7273[fancyvrb]: http://www.ctan.org/tex-archive/macros/latex/contrib/fancyvrb/
@@ -152,13 +153,13 @@ The shell scripts (described below) automatically convert the input
152153from the local encoding to UTF-8 before running them through `pandoc`,
153154then convert the output back to the local encoding.
154155
155−`markdown2pdf` and `html2markdown`
156−==================================
156+`markdown2pdf`, `html2markdown`, and `hsmarkdown`
157+=================================================
157158
158−Two shell scripts, `markdown2pdf` and `html2markdown`, are included in
159−the standard Pandoc installation. (They are not included in the Windows
160−binary package, as they require a POSIX shell, but they may be used
161−in Windows under Cygwin.)
159+Three shell scripts, `markdown2pdf`, `html2markdown`, and `hsmarkdown`,
160+are included in the standard Pandoc installation. (They are not included
161+in the Windows binary package, as they require a POSIX shell, but they
162+may be used in Windows under Cygwin.)
162163
1631641. `markdown2pdf` produces a PDF file from markdown-formatted
164165 text, using `pandoc` and `pdflatex`. The default
@@ -190,6 +191,14 @@ in Windows under Cygwin.)
190191
191192 html2markdown -g 'wget --user=foo --password=bar' mysite.com
192193
194+3. `hsmarkdown` is designed to be used as a drop-in replacement for
195+ `Markdown.pl`. It forces `pandoc` to convert from markdown to
196+ HTML, and to use the `--strict` flag for maximal compliance with
197+ official markdown syntax. (All of Pandoc's syntax extensions and
198+ variants, described below, are disabled.) No other command-line
199+ options are allowed. (In fact, options will be interpreted as
200+ filenames.)
201+
193202Command-line options
194203====================
195204
@@ -299,7 +308,8 @@ Pandoc's markdown vs. standard markdown
299308In parsing markdown, Pandoc departs from and extends [standard markdown]
300309in a few respects. (To run Pandoc on the official
301310markdown test suite, type `make test-markdown`.) These differences can
302−be suppressed by specifying the `--strict` command-line option.
311+be suppressed by specifying the `--strict` command-line option or by
312+using the `hsmarkdown` wrapper.
303313
304314[standard markdown]: http://daringfireball.net/projects/markdown/syntax
305315 "Markdown syntax description"