Skip to content

v2.83.1

Latest

Choose a tag to compare

@m-aebrer m-aebrer released this 13 Nov 15:52
9a942a5

Fix false strikethrough from approximate values

Strikethrough in the TUI Markdown component, dashboard transcript (including thinking), and HTML session export now follows GitHub's GFM rules for the reported cases.

  • ~7 percent vs ~12 percent stays literal instead of striking unrelated prose.
  • A tilde inside an inline code span cannot close strikethrough; the code span stays intact.
  • Intentional ~~text~~, ~text~, and intra-word strikes such as 5~7 and 10~12 still work.
  • The buddy speech bubble also keeps approximate-value tildes and code spans intact. Its existing lack of strikethrough styling is unchanged.

One markdown version across the built-in renderers

TUI, coding-agent, and dashboard dependencies use marked 18.2.0. The HTML export embeds the same version, with tests enforcing both a byte-identical vendored bundle and unchanged inlining into exported files.

Compatibility fixes

  • TUI markdown and buddy speech strip terminal-driving control characters from raw source and numeric character references. This prevents references such as  from becoming terminal escape sequences. CR/CRLF becomes LF, tabs become three spaces, and newlines are preserved.
  • @dreb/tui exports sanitizeTerminalText() and markedTextToTerminal() for custom marked-based terminal renderers.
  • Ampersands next to numeric references render correctly in the terminal and export, without double-encoding.
  • HTML exports render inline formatting in tight list items and escape text after inline raw <code>, <kbd>, and <pre> tags correctly.
  • TUI indented code blocks, link-reference definitions, and deeply indented list continuations no longer add the extra rows covered by the regression tests. Dashboard thinking separators no longer introduce an extra gap.

Known limitations

  • HTML exports are not sanitized viewers for untrusted sessions. Raw message HTML can run event handlers or hide later content in the same message; list items now share that existing passthrough behavior. Open only exports whose content you trust. This release does not add an HTML sanitizer or Content Security Policy.
  • Mixed-indentation list continuations can still gain an internal blank row in the TUI. Some block types ending with blank lines also render a trailing row for callers that do not trim their text.

Validation

7,473 offline tests passed. Build, lint, type checks, workspace-link verification, and final PR CI passed. Dashboard screenshots regenerated byte-identical. Documentation now covers the strikethrough rules, terminal helpers, and HTML-export trust boundary.

Resolves issue 576 via PR 578.