pub fn render_html(html: &str, width: usize, links: LinkStyle) -> StringExpand description
Render an HTML body to text.
- Uses html2text’s
raw_modewhich traverses HTML<table>elements as a sequence of paragraphs (every cell becomes its own row, no column layout, no ASCII borders). Marketing emails are almost entirely layout tables; this keeps the reading flow. - Suppresses
<img>alt-text entirely (no[[Logo]]noise from email tracking pixels and logo images). - Folds NBSP to a plain space so NBSP-padded table cells collapse like ordinary blank runs.
- Collapses runs of more than two blank lines down to two.