mirror of
https://github.com/morluto/rea.git
synced 2026-11-09 08:17:02 +00:00
fix(cli): preserve literal HTML text in Markdown tables (#6932)
This commit is contained in:
1 parent
c298d54e88
commit
2c3568c375
3 files changed
+20
-1
No files matched your search
@@ -44,6 +44,9 @@ const isObjectArray = (value: unknown): value is Record<string, unknown>[] =>
|
||||
|
||||
const escapeTableCell = (value: string): string =>
|
||||
value
|
||||
.replace(/&/g, "&")
|
||||
.replace(/</g, "<")
|
||||
.replace(/>/g, ">")
|
||||
.replace(/\\/g, "\\\\")
|
||||
.replace(/\|/g, "\\|")
|
||||
.replace(/\r\n|\r|\n/g, "<br>");
|
||||
|
||||
Reference in new issue
Block a user