PYTHON3-HTML2TEXT(1)

๐Ÿ“ฆ
version 2025.4.15 ยท 4 versions
, in epel 10

โœจ 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 named filename, literally.
  • encoding โ€” positional argument named encoding, 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 include mailto: 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; preserves height, width and alt if 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, 0 for 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 -g is 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 the sup and sub tags.

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