Repository navigation
Tags
Tags
feat: render HTML bodies as styled markdown HTML bodies no longer flatten to plain text: the in-repo walker emits markdown (headings, emphasis, lists, quotes, rules, fenced code, tables that are genuinely tabular) with sender text escaped so it cannot become structure, and the preview styles it through glamour with the theme's palette — one accent, no margins, no borders. The two readers of a body stay separate: the preview gets markdown (BodyView.Styled), the composer's quote stays plain (EmailBody.Text). text/plain bodies are untouched. glamour renders width-independent (WordWrap 0): its own wrapping pads every line with a styled space per column at ~10 ms/KB, and paying that once per body instead of on every resize drops the pipeline to ~1.6 ms/KB, with resize back on the plain ansi.Wrap path. SanitizeStyled is the frame boundary — SGR passes, every other escape drops whole. REQUIREMENTS FR-E2 rewritten, §4 non-goal reworded, §8.1 closed; PLAN §6.3 design record and §7 degradation note.
PreviousNext