fix(cli): preserve literal HTML text in Markdown tables (#6932)

This commit is contained in:
ShuaixinHuang authored and GitHub committed 2026-10-24 16:11:00 +08:00
1 parent c298d54e88
commit 2c3568c375
3 files changed
+20 -1

No files matched your search

+3
View File
@@ -44,6 +44,9 @@ const isObjectArray = (value: unknown): value is Record<string, unknown>[] =>
const escapeTableCell = (value: string): string =>
value
.replace(/&/g, "&amp;")
.replace(/</g, "&lt;")
.replace(/>/g, "&gt;")
.replace(/\\/g, "\\\\")
.replace(/\|/g, "\\|")
.replace(/\r\n|\r|\n/g, "<br>");