1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
.TH HTML2MARKDOWN "1" "October 2014" "html2markdown 2014.9.25" "User Commands"
.SH NAME
html2markdown \- converts a page of HTML into markdown.
.SH SYNOPSIS
.B html2markdown
[options...] [(\fIfilename\fR|\fIurl\fR) [\fIencoding\fR]]
.SH DESCRIPTION
\fBhtml2markdown\fR downloads the specified HTML page, and converts it
to text marked up with markdown.
The source HTML page may be a local file or remote URL.
If not specified, it will be read from standard input.
The output is printed to standard output.
.P
If an \fIencoding\fR is specified, it will override any encoding
information provided by the HTTP Server.
When not specified, \fBpython-feedparser\fR (if available) will be used
to determine the source encoding.
If not available, or when reading local files, the encoding is assumed
to be UTF-8.
.SH OPTIONS
.TP
.B \-\-ignore\-emphasis
Don't include any formatting for emphasis.
.TP
.B \-\-ignore\-links
Don't include any formatting for links.
.TP
.B \-\-ignore\-images
Don't include any formatting for images.
.TP
.BR \-g ", " \-\-google\-doc
Convert an html-exported Google Document.
.TP
.BR \-d ", " \-\-dash\-unordered\-list
Use a dash rather than a star for unordered list items.
.TP
.BR \-e ", " \-\-asterisk\-emphasis
Use an asterisk rather than an underscore for emphasized text.
.TP
\fB\-b\fR \fIBODY_WIDTH\fR, \fB\-\-body\-width\fR=\fIBODY_WIDTH\fR
Number of characters per output line, \fB0\fR for no wrap.
.TP
\fB\-i\fR \fILIST_INDENT\fR, \fB\-\-google\-list\-indent\fR=\fILIST_INDENT\fR
Number of pixels Google indents nested lists.
.TP
.BR \-s ", " \-\-hide\-strikethrough
Hide strike-through text. Only relevant when \fB-g\fR is specified as
well.
.TP
.B \-\-escape\-all
Escape all special characters. Output is less readable, but avoids corner case formatting issues.
.TP
.B \-\-bypass\-tables
Format tables in HTML rather than Markdown syntax.
.TP
.B \-\-version
Show program's version number and exit.
.TP
.BR \-h ", " \-\-help
Show a help message and exit.
.SH AUTHOR
This manpage was written for Debian, by Stefano Rivera
<stefanor@debian.org>.
|