feat(chat): render fenced code blocks in user messages#1335
feat(chat): render fenced code blocks in user messages#1335bergeouss wants to merge 1 commit intonesquena:masterfrom
Conversation
Fenced code blocks () in user message bubbles now render with syntax highlighting, copy buttons, and language headers — the same pipeline used for assistant messages. Non-fenced text remains escaped HTML (no bold/italic/link interpretation), matching the maintainer-approved scope of 'fenced blocks only'. Closes nesquena#1325
|
The test (3.11) failure is a pre-existing flaky test unrelated to this PR:
This test uses threading with tight timing ( All other tests pass (3266 passed, 56 skipped, 3 xpassed). This PR only modifies |
|
Thanks — confirmed, the flaky It's stabilized in the release batch (#1343) by replacing the polling sleep windows with No re-run needed on this branch — it'll get picked up on merge. |
|
Shipped in v0.50.246 via batch release PR #1343 (merge commit Released alongside 4 other contributor fixes — see the v0.50.246 entry in CHANGELOG.md. |
From PR nesquena#1335. Co-authored-by: bergeouss <[email protected]>
Combines: - 4 contributor PRs (nesquena#1335 user fenced code, nesquena#1337 mermaid+cache-bust, nesquena#1339 fallback_providers list, nesquena#1341 context_length persistence) - Self-built nesquena#1338 (cancel data-loss + activity panel) — already independently APPROVED by nesquena before absorption - CONTRIBUTORS.md and markdown refresh from nesquena#1340 See CHANGELOG.md for the full list with author credit.
From PR nesquena#1335. Co-authored-by: bergeouss <[email protected]>
Combines: - 4 contributor PRs (nesquena#1335 user fenced code, nesquena#1337 mermaid+cache-bust, nesquena#1339 fallback_providers list, nesquena#1341 context_length persistence) - Self-built nesquena#1338 (cancel data-loss + activity panel) — already independently APPROVED by nesquena before absorption - CONTRIBUTORS.md and markdown refresh from nesquena#1340 See CHANGELOG.md for the full list with author credit.
Summary
Fenced code blocks (```...```) in user message bubbles now render with syntax highlighting, language headers, and copy buttons — the same `