Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

html2markdown.py3(1) [debian man page]

HTML2MARKDOWN(1)						   User Commands						  HTML2MARKDOWN(1)

NAME
html2markdown - converts a page of HTML into markdown. SYNOPSIS
html2markdown [options...] [(filename|url) [encoding]] DESCRIPTION
html2markdown 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. If an encoding is specified, it will override any encoding information provided by the HTTP Server. When not specified, python-feedparser (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. OPTIONS
--ignore-emphasis Don't include any formatting for emphasis. --ignore-links Don't include any formatting for links. --ignore-images Don't include any formatting for images. -g, --google-doc Convert an html-exported Google Document. -d, --dash-unordered-list Use a dash rather than a star for unordered list items. -b BODY_WIDTH, --body-width=BODY_WIDTH Number of characters per output line, 0 for no wrap. -i LIST_INDENT, --google-list-indent=LIST_INDENT Number of pixels Google indents nested lists. -s, --hide-strikethrough Hide strike-through text. Only relevant when -g is specified as well. --version Show program's version number and exit. -h, --help Show a help message and exit. AUTHOR
This manpage was written for Debian, by Stefano Rivera <stefanor@debian.org>. html2markdown 3.200.1 January 2012 HTML2MARKDOWN(1)

Check Out this Related Man Page

MARKDOWN(1)						    BSD General Commands Manual 					       MARKDOWN(1)

NAME
markdown -- text to html conversion tool SYNOPSIS
markdown [-d] [-T] [-V] [-b url-base] [-C prefix] [-F bitmap] [-f flags] [-o file] [-s text] [-t text] [textfile] DESCRIPTION
The markdown utility reads the markdown(7)-formatted textfile (or stdin if not specified,) compiles it, and writes the html output to stdout. The options are as follows: -b url-base Links in source beginning with / will be prefixed with url-base in the output. -C When processing markdown extra-style footnotes, use the given prefix instead of the default of fn. -d Instead of writing the html file, dump a parse tree to stdout. -f flags Set or clear various translation flags. The flags are in a comma-delimited list, with an optional + (enable), - (disable), or no (disable) lprefix on each flag. links Allow links. image Allow images. smarty Enable smartypants. pants Enable smartypants. html Allow raw html. strict Disable superscript, strikethrough & relaxed emphasis. ext Enable pseudo-protocols. cdata Generate code for xml ![CDATA[...]]. superscript Enable superscript processing. emphasis Emphasis happens everywhere. tables Don't process PHP Markdown Extra tables. del Enable ~~strikethrough~~. strikethrough Enable ~~strikethrough~~. toc Enable table-of-contents processing. 1.0 Compatibility with MarkdownTest_1.0 autolink Make http://foo.com a link even without <>. safelink Paranoid check for link protocol. header Process pandoc-style header blocks. tabstop Expand tabs to 4 spaces. divquote Allow >%class% blocks. alphalist Allow alphabetic lists. definitionlist Allow definition lists. footnote Allow markdown extra-style footnotes. As an example, the option -f nolinks,smarty tells markdown to not allow <a tags, and to do smarty pants processing. -F bitmap Set translation flags. Bitmap is a bit map of the various configuration options described in markdown(3) (the flag values are defined in mkdio.h) -V Show the version# and compile-time configuration data. If the version includes the string DEBUG, markdown was configured with memory allocation debugging. If the version includes the string TAB, markdown was configured to use the specified tabstop. -VV Show the version#, the compile-time configuration, and the run-time configuration. -o file Write the generated html to file. -t text Use mkd_text(3) to format text instead of processing stdin with the markdown(3) function. -T If run with the table-of-content flag on, dump the table of contents before the formatted text. -s text Use the markdown(3) function to format text. RETURN VALUES
The markdown utility exits 0 on success, and >0 if an error occurs. SEE ALSO
markdown(3), markdown(7), mkd-extensions(7). AUTHOR
David Parsons (orc@pell.chi.il.us) MASTODON
January 7, 2008 MASTODON
Man Page