@@ -2,7 +2,8 @@
22.SH NAME
33html2markdown \- converts HTML to markdown-formatted text
44.SH SYNOPSIS
5−\fBhtml2markdown\fR [\fIoptions\fR] [\fIinput\-file\fR or \fIURL\fR]
5+\fBhtml2markdown\fR [\fIpandoc\-options\fR]
6+[\-\- \fIspecial\-options\fR] [\fIinput\-file\fR or \fIURL\fR]
67.SH DESCRIPTION
78\fBhtml2markdown\fR converts \fIinput\-file\fR or \fIURL\fR (or text
89from STDIN) from HTML to markdown\-formatted plain text.
@@ -14,10 +15,12 @@ option.
1415\fBhtml2markdown\fR uses the character encoding specified in the
1516"Content-type" meta tag. If this is not present, or if input comes
1617from STDIN, UTF-8 is assumed. A character encoding may be specified
17−explicitly using the \fB\-e\fR option.
18−.PP
19−\fBhtml2markdown\fR is a wrapper for \fBpandoc\fR.
18+explicitly using the \fB\-e\fR special option.
2019.SH OPTIONS
20+.PP
21+\fBhtml2markdown\fR is a wrapper for \fBpandoc\fR, so all of
22+\fBpandoc\fR's options may be used. See \fBpandoc\fR(1) for
23+a complete list. The following options are most relevant:
2124.TP
2225.B \-s, \-\-standalone
2326Include title, author, and date information (if present) at the
@@ -26,12 +29,6 @@ top of markdown output.
2629.B \-o FILE, \-\-output=FILE
2730Write output to \fIFILE\fR instead of STDOUT.
2831.TP
29−.B \-p, \-\-preserve-tabs
30−Preserve tabs instead of converting them to spaces.
31−.TP
32−.B \-\-tab-stop=\fITABSTOP\fB
33−Specify tab stop (default is 4).
34−.TP
3532.B \-\-strict
3633Use strict markdown syntax, with no extensions or variants.
3734.TP
@@ -54,29 +51,29 @@ Use contents of \fIFILE\fR
5451as the document header (overriding the default header, which can be
5552printed using '\fBpandoc \-D markdown\fR'). Implies
5653\fB-s\fR.
54+.SH "SPECIAL OPTIONS"
55+.PP
56+In addition, the following special options may be used. The special
57+options must be separated from the \fBhtml2markdown\fR command and any
58+regular \fBpandoc\fR options by the delimiter `\-\-', as in
59+.IP
60+.B html2markdown \-o foo.txt \-\- \-g 'curl \-u bar:baz' \-e latin1
61+.B www.foo.com
5762.TP
58−.B \-v, \-\-version
59−Print version.
60−.TP
61−.B \-h, \-\-help
62−Show usage message.
63−.TP
64−.B \-e \fIencoding\fR
63+.B \-e \fIencoding\fR, \-\-encoding=\fIencoding\fR
6564Assume the character encoding \fIencoding\fR in reading HTML.
6665(Note: \fIencoding\fR will be passed to \fBiconv\fR; a list of
6766available encodings may be obtained using `\fBiconv \-l\fR'.)
68−If the \fB\-e\fR option is not specified and input is not from
67+If this option is not specified and input is not from
6968STDIN, \fBhtml2markdown\fR will try to extract the character encoding
7069from the "Content-type" meta tag. If no character encoding is
7170specified in this way, or if input is from STDIN, UTF-8 will be
7271assumed.
7372.TP
74−.B \-g \fIcommand\fR
73+.B \-g \fIcommand\fR, \-\-grabber=\fIcommand\fR
7574Use \fIcommand\fR to fetch the contents of a URL. (By default,
7675\fBhtml2markdown\fR searches for an available program or text-based
77−browser to fetch the contents of a URL.) For example:
78−.IP
79−html2markdown \-g 'wget \-\-user=foo \-\-password=bar' mysite.com
76+browser to fetch the contents of a URL.)
8077
8178.SH "SEE ALSO"
8279\fBpandoc\fR(1),