OS Manuals

/opt/chainguard/nemo-skills/venv/bin/html2text

NVIDIA NeMo-Skills, pipelines for LLM synthetic data generation, evaluation and training data preparation

From nemo-skills 0.7.0_git20260911-r15 (enterprise-packages), captured 2026-11-08 by running html2text --help (exit 0). permalink

usage: 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
  encoding

options:
  -h, --help            show this help message and exit
  --default-image-alt DEFAULT_IMAGE_ALT
                        The default alt string for images with missing ones
  --pad-tables          pad the cells to equal column width in tables
  --no-wrap-links       don't wrap links during conversion
  --wrap-list-items     wrap list items during conversion
  --wrap-tables         wrap tables
  --ignore-emphasis     don't include any formatting for emphasis
  --reference-links     use reference style links instead of inline links
  --ignore-links        don't include any formatting for links
  --ignore-mailto-links
                        don't include mailto: links
  --protect-links       protect links from line breaks surrounding them with angle brackets
  --ignore-images       don't include any formatting for images
  --images-as-html      Always write image tags as raw html; preserves `height`, `width` and `alt`
                        if possible.
  --images-to-alt       Discard image data, only keep alt text
  --images-with-size    Write image tags with height and width attrs as raw html to retain
                        dimensions
  -g, --google-doc      convert an html-exported Google Document
  -d, --dash-unordered-list
                        use a dash rather than a star for unordered list items
  -e, --asterisk-emphasis
                        use 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
                        hide strike-through text. only relevant when -g is specified as well
  --escape-all          Escape all special characters. Output is less readable, but avoids corner
                        case formatting issues.
  --bypass-tables       Format tables in HTML rather than Markdown syntax.
  --ignore-tables       Ignore table-related tags (table, th, td, tr) while keeping rows.
  --single-line-break   Use a single line break after a block element rather than two line breaks.
                        NOTE: Requires --body-width=0
  --unicode-snob        Use unicode throughout document
  --no-automatic-links  Do not use automatic links wherever applicable
  --no-skip-internal-links
                        Do not skip internal links
  --links-after-para    Put links after each paragraph instead of document
  --mark-code           Mark 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             show program's version number and exit
  --include-sup-sub     Include the sup and sub tags
Options (34)
OptionDescriptionSource
-h, --helpshow this help message and exithelp
--default-image-alt DEFAULT_IMAGE_ALTThe default alt string for images with missing oneshelp
--pad-tablespad the cells to equal column width in tableshelp
--no-wrap-linksdon't wrap links during conversionhelp
--wrap-list-itemswrap list items during conversionhelp
--wrap-tableswrap tableshelp
--ignore-emphasisdon't include any formatting for emphasishelp
--reference-linksuse reference style links instead of inline linkshelp
--ignore-linksdon't include any formatting for linkshelp
--ignore-mailto-linksdon't include mailto: linkshelp
--protect-linksprotect links from line breaks surrounding them with angle bracketshelp
--ignore-imagesdon't include any formatting for imageshelp
--images-as-htmlAlways write image tags as raw html;help
--images-to-altDiscard image data, only keep alt texthelp
--images-with-sizeWrite image tags with height and width attrs as raw html to retain dimensionshelp
-g, --google-docconvert an html-exported Google Documenthelp
-d, --dash-unordered-listuse a dash rather than a star for unordered list itemshelp
-e, --asterisk-emphasisuse an asterisk rather than an underscore for emphasized texthelp
-s, --hide-strikethroughhide strike-through text.help
--escape-allEscape all special characters.help
--bypass-tablesFormat tables in HTML rather than Markdown syntax.help
--ignore-tablesIgnore table-related tags (table, th, td, tr) while keeping rows.help
--single-line-breakUse a single line break after a block element rather than two line breaks.help
--unicode-snobUse unicode throughout documenthelp
--no-automatic-linksDo not use automatic links wherever applicablehelp
--no-skip-internal-linksDo not skip internal linkshelp
--links-after-paraPut links after each paragraph instead of documenthelp
--mark-codeMark program code blocks with [code]...[/code]help
--backquote-code-styleMulti line code block using tri-backquote stylehelp
--decode-errors DECODE_ERRORSWhat to do in case of decode errors.'ignore', 'strict' and 'replace' are acceptable valueshelp
--open-quote OPEN_QUOTEThe character used to open quoteshelp
--close-quote CLOSE_QUOTEThe character used to close quoteshelp
--versionshow program's version number and exithelp
--include-sup-subInclude the sup and sub tagshelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.