PYTHON3-HTML2TEXT(1)
โจ NAME โจ
python3-html2text โ bestie, this is the PYTHON3-HTML2TEXT(1) manual page for python3-html2text 2025.4.15, filed under User Commands. Thatโs the name section, short and iconic ๐
๐ฆ DESCRIPTION ๐ฆ
Okay so hereโs the usage, exactly as printed, no cap:
usage: python3-html2text [-h] [--default-image-alt DEFAULT_IMAGE_ALT]
[--pad-tables] [--no-wrap-links] [--wrap-list-items]
[--wrap-tables] [--ignore-emphasis] [--reference-links]
[--ignore-links] [--ignore-mailto-links] [--protect-links]
[--ignore-images] [--images-as-html] [--images-to-alt]
[--images-with-size] [-g] [-d] [-e] [-b BODY_WIDTH] [-i
LIST_INDENT] [-s] [--escape-all] [--bypass-tables]
[--ignore-tables] [--single-line-break] [--unicode-snob]
[--no-automatic-links] [--no-skip-internal-links]
[--links-after-para] [--mark-code] [--backquote-code-style]
[--decode-errors DECODE_ERRORS] [--open-quote OPEN_QUOTE]
[--close-quote CLOSE_QUOTE] [--version] [--include-sup-sub]
[filename] [encoding]
๐ธ positional arguments ๐ธ
filenameโ positional argument namedfilename, literally.encodingโ positional argument namedencoding, also literally.
๐ options ๐
-h,--helpโ shows this help message and exits, the classic escape hatch ๐--default-image-alt DEFAULT_IMAGE_ALTโ the default alt string for images with missing ones, so they still get a little description moment ๐--pad-tablesโ pads the cells to equal column width in tables, neat and tidy โจ--no-wrap-linksโ doesnโt wrap links during conversion, periodt.--wrap-list-itemsโ wraps list items during conversion.--wrap-tablesโ wraps tables, simple as that.--ignore-emphasisโ doesnโt include any formatting for emphasis.--reference-linksโ uses reference style links instead of inline links, very bibliography-core ๐--ignore-linksโ doesnโt include any formatting for links.--ignore-mailto-linksโ doesnโt includemailto:links.--protect-linksโ protects links from line breaks surrounding them with angle brackets ๐ก๏ธ--ignore-imagesโ doesnโt include any formatting for images.--images-as-htmlโ always writes image tags as raw html; preservesheight,widthandaltif possible.--images-to-altโ discards image data, only keeps alt text.--images-with-sizeโ writes image tags with height and width attrs as raw html to retain dimensions.-g,--google-docโ converts an html-exported Google Document.-d,--dash-unordered-listโ uses a dash rather than a star for unordered list items.-e,--asterisk-emphasisโ uses an asterisk rather than an underscore for emphasized text.-b BODY_WIDTH,--body-width BODY_WIDTHโ number of characters per output line,0for no wrap.-i LIST_INDENT,--google-list-indent LIST_INDENTโ number of pixels Google indents nested lists.-s,--hide-strikethroughโ hides strike-through text. Only relevant when-gis specified as well.--escape-allโ escapes all special characters. Output is less readable, but avoids corner case formatting issues.--bypass-tablesโ formats tables in HTML rather than Markdown syntax.--ignore-tablesโ ignores table-related tags (table,th,td,tr) while keeping rows.--single-line-breakโ uses a single line break after a block element rather than two line breaks. NOTE: requires--body-width=0.--unicode-snobโ uses unicode throughout document.--no-automatic-linksโ does not use automatic links wherever applicable.--no-skip-internal-linksโ does not skip internal links.--links-after-paraโ puts links after each paragraph instead of document.--mark-codeโ marks program code blocks with[code]...[/code].--backquote-code-styleโ multi line code block using tri-backquote style.--decode-errors DECODE_ERRORSโ what to do in case of decode errors.'ignore','strict'and'replace'are acceptable values.--open-quote OPEN_QUOTEโ the character used to open quotes.--close-quote CLOSE_QUOTEโ the character used to close quotes.--versionโ shows the programโs version number and exits.--include-sup-subโ includes thesupandsubtags.
Thatโs the whole manual, bestie โ every flag, every vibe, no cap. Source/version: python3-html2text 2025.4.15 ยท date: January 2025. Go convert some HTML and slay ๐
โจ
๐ฆ where this page comes from
- epel 10: python3-html2text 2025.4.15-1.el10_1 ยท GPL-3.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms