@@ -2,7 +2,8 @@
3html2markdown \- converts HTML to markdown-formatted text
3html2markdown \- converts HTML to markdown-formatted text
4.SH SYNOPSIS
4.SH SYNOPSIS
5+\fBhtml2markdown\fR [\fIpandoc\-options\fR]
5−\fBhtml2markdown\fR [\fIoptions\fR] [\fIinput\-file\fR or \fIURL\fR]
6+[\-\- \fIspecial\-options\fR] [\fIinput\-file\fR or \fIURL\fR]
6.SH DESCRIPTION
7.SH DESCRIPTION
7\fBhtml2markdown\fR converts \fIinput\-file\fR or \fIURL\fR (or text
8\fBhtml2markdown\fR converts \fIinput\-file\fR or \fIURL\fR (or text
8from STDIN) from HTML to markdown\-formatted plain text.
9from STDIN) from HTML to markdown\-formatted plain text.
@@ -14,10 +15,12 @@ option.
14\fBhtml2markdown\fR uses the character encoding specified in the
15\fBhtml2markdown\fR uses the character encoding specified in the
15"Content-type" meta tag. If this is not present, or if input comes
16"Content-type" meta tag. If this is not present, or if input comes
16from STDIN, UTF-8 is assumed. A character encoding may be specified
17from STDIN, UTF-8 is assumed. A character encoding may be specified
17−explicitly using the \fB\-e\fR option.
18+explicitly using the \fB\-e\fR special option.
19−\fBhtml2markdown\fR is a wrapper for \fBpandoc\fR.
20.SH OPTIONS
19.SH OPTIONS
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:
22.B \-s, \-\-standalone
25.B \-s, \-\-standalone
23Include title, author, and date information (if present) at the
26Include title, author, and date information (if present) at the
@@ -26,12 +29,6 @@ top of markdown output.
26.B \-o FILE, \-\-output=FILE
29.B \-o FILE, \-\-output=FILE
27Write output to \fIFILE\fR instead of STDOUT.
30Write output to \fIFILE\fR instead of STDOUT.
29−.B \-p, \-\-preserve-tabs
30−Preserve tabs instead of converting them to spaces.
32−.B \-\-tab-stop=\fITABSTOP\fB
33−Specify tab stop (default is 4).
35.B \-\-strict
32.B \-\-strict
36Use strict markdown syntax, with no extensions or variants.
33Use strict markdown syntax, with no extensions or variants.
@@ -54,29 +51,29 @@ Use contents of \fIFILE\fR
54as the document header (overriding the default header, which can be
51as the document header (overriding the default header, which can be
55printed using '\fBpandoc \-D markdown\fR'). Implies
52printed using '\fBpandoc \-D markdown\fR'). Implies
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
60+.B html2markdown \-o foo.txt \-\- \-g 'curl \-u bar:baz' \-e latin1
64−.B \-e \fIencoding\fR
63+.B \-e \fIencoding\fR, \-\-encoding=\fIencoding\fR
65Assume the character encoding \fIencoding\fR in reading HTML.
64Assume the character encoding \fIencoding\fR in reading HTML.
66(Note: \fIencoding\fR will be passed to \fBiconv\fR; a list of
65(Note: \fIencoding\fR will be passed to \fBiconv\fR; a list of
67available encodings may be obtained using `\fBiconv \-l\fR'.)
66available 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
69STDIN, \fBhtml2markdown\fR will try to extract the character encoding
68STDIN, \fBhtml2markdown\fR will try to extract the character encoding
70from the "Content-type" meta tag. If no character encoding is
69from the "Content-type" meta tag. If no character encoding is
71specified in this way, or if input is from STDIN, UTF-8 will be
70specified in this way, or if input is from STDIN, UTF-8 will be
74−.B \-g \fIcommand\fR
73+.B \-g \fIcommand\fR, \-\-grabber=\fIcommand\fR
75Use \fIcommand\fR to fetch the contents of a URL. (By default,
74Use \fIcommand\fR to fetch the contents of a URL. (By default,
76\fBhtml2markdown\fR searches for an available program or text-based
75\fBhtml2markdown\fR searches for an available program or text-based
77−browser to fetch the contents of a URL.) For example:
76+browser to fetch the contents of a URL.)
79−html2markdown \-g 'wget \-\-user=foo \-\-password=bar' mysite.com
81.SH "SEE ALSO"
78.SH "SEE ALSO"
82\fBpandoc\fR(1),
79\fBpandoc\fR(1),