From e083f678fdfbf8b30b56ae9a40f9cdc458b981bc Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Wed, 21 Jan 2026 00:12:21 +0000 Subject: [PATCH] fix(ui): preserve ordered list numbering (#1341) - thanks @bradleypriest Co-authored-by: Bradley Priest --- CHANGELOG.md | 1 + ui/src/ui/markdown.ts | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c84616062..1d5492c01 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,7 @@ Docs: https://docs.clawd.bot - Doctor: clarify plugin auto-enable hint text in the startup banner. - Gateway: clarify unauthorized handshake responses with token/password mismatch guidance. - UI: keep config form enums typed, preserve empty strings, protect sensitive defaults, and deepen config search. (#1315) — thanks @MaudeBot. +- UI: preserve ordered list numbering in chat markdown. (#1341) — thanks @bradleypriest. - Web search: infer Perplexity base URL from API key source (direct vs OpenRouter). - TUI: keep thinking blocks ordered before content during streaming and isolate per-run assembly. (#1202) — thanks @aaronveklabs. - TUI: align custom editor initialization with the latest pi-tui API. (#1298) — thanks @sibbl. diff --git a/ui/src/ui/markdown.ts b/ui/src/ui/markdown.ts index f83fd18a7..0191b06f5 100644 --- a/ui/src/ui/markdown.ts +++ b/ui/src/ui/markdown.ts @@ -5,7 +5,6 @@ import { truncateText } from "./format"; marked.setOptions({ gfm: true, breaks: true, - headerIds: false, mangle: false, }); @@ -37,7 +36,7 @@ const allowedTags = [ "ul", ]; -const allowedAttrs = ["class", "href", "rel", "target", "title"]; +const allowedAttrs = ["class", "href", "rel", "target", "title", "start"]; let hooksInstalled = false; const MARKDOWN_CHAR_LIMIT = 140_000;