fix(ui): preserve user ordered-list markers (closes #5013)
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fixed user message transcript rendering to preserve user-authored ordered-list markers ([#5013](https://github.com/earendil-works/pi/issues/5013)).
|
||||
- Fixed self-update commands to bypass npm, pnpm, and Bun minimum release age gates for explicit `pi update` runs ([#4929](https://github.com/earendil-works/pi/issues/4929)).
|
||||
- Fixed context token estimates to count user image attachments consistently with tool result images ([#4983](https://github.com/earendil-works/pi/issues/4983)).
|
||||
- Fixed `RpcClient` to reject pending requests and consume stdin pipe errors when the child process exits unexpectedly ([#4764](https://github.com/earendil-works/pi/issues/4764)).
|
||||
|
||||
@@ -15,9 +15,16 @@ export class UserMessageComponent extends Container {
|
||||
super();
|
||||
this.contentBox = new Box(1, 1, (content: string) => theme.bg("userMessageBg", content));
|
||||
this.contentBox.addChild(
|
||||
new Markdown(text, 0, 0, markdownTheme, {
|
||||
color: (content: string) => theme.fg("userMessageText", content),
|
||||
}),
|
||||
new Markdown(
|
||||
text,
|
||||
0,
|
||||
0,
|
||||
markdownTheme,
|
||||
{
|
||||
color: (content: string) => theme.fg("userMessageText", content),
|
||||
},
|
||||
{ preserveOrderedListMarkers: true },
|
||||
),
|
||||
);
|
||||
this.addChild(this.contentBox);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user