From 0e1d90d8c681f2d21ea49f5bf4796a58fcb92662 Mon Sep 17 00:00:00 2001 From: 1AhmedYasser <26207361+1AhmedYasser@users.noreply.github.com> Date: Wed, 4 Feb 2026 16:56:59 +0200 Subject: [PATCH 1/3] chore(827): Enhanced Markdownify --- GUI/src/components/ChatEvent/Markdownify.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/GUI/src/components/ChatEvent/Markdownify.tsx b/GUI/src/components/ChatEvent/Markdownify.tsx index 5b1553f4..7eb9821b 100644 --- a/GUI/src/components/ChatEvent/Markdownify.tsx +++ b/GUI/src/components/ChatEvent/Markdownify.tsx @@ -63,6 +63,12 @@ function formatMessage(message?: string): string { return filteredMessage .replaceAll(/&#x([0-9A-Fa-f]+);/g, (_, hex: string) => String.fromCharCode(parseInt(hex, 16))) + .replaceAll('&', '&') + .replaceAll('>', '>') + .replaceAll('<', '<') + .replaceAll('"', '"') + .replaceAll(''', "'") + .replaceAll(''', "'") .replaceAll(/(^|\n)(\d{4})\.\s/g, (match, prefix, year) => { const remainingText = filteredMessage.substring(filteredMessage.indexOf(match) + match.length); const sentenceEnd = remainingText.indexOf('\n\n'); @@ -74,7 +80,8 @@ function formatMessage(message?: string): string { } return `${prefix}${year}\\. `; }) - .replace(/(?<=\n)\d+\.\s/g, hasSpecialFormat(filteredMessage) ? '\n\n$&' : '$&'); + .replaceAll(/(?<=\n)\d+\.\s/g, hasSpecialFormat(filteredMessage) ? '\n\n$&' : '$&') + .replaceAll(/^(\s+)/g, (match) => match.replaceAll(' ', ' ')); } const Markdownify: React.FC = ({ message, sanitizeLinks = false }) => ( From b8b23089b8f7daf34c6684dbc297903ed705ab24 Mon Sep 17 00:00:00 2001 From: 1AhmedYasser <26207361+1AhmedYasser@users.noreply.github.com> Date: Wed, 4 Feb 2026 17:05:29 +0200 Subject: [PATCH 2/3] chore(827): Bumped Package Version --- GUI/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GUI/package.json b/GUI/package.json index 390ab7bb..bc570628 100644 --- a/GUI/package.json +++ b/GUI/package.json @@ -7,7 +7,7 @@ "@buerokratt-ria/header": "^0.1.47", "@buerokratt-ria/menu": "^0.2.10", "@buerokratt-ria/styles": "^0.0.1", - "@buerokratt-ria/common-gui-components": "^0.0.38", + "@buerokratt-ria/common-gui-components": "^0.0.41", "@fontsource/roboto": "^4.5.8", "@formkit/auto-animate": "^1.0.0-beta.6", "@hookform/resolvers": "^2.9.11", From 4fab5de0c1bbc3d81bdc6fd6197c7ca6ac02a6ff Mon Sep 17 00:00:00 2001 From: 1AhmedYasser <26207361+1AhmedYasser@users.noreply.github.com> Date: Wed, 4 Feb 2026 18:30:55 +0200 Subject: [PATCH 3/3] chore(644): Bumped package version --- GUI/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GUI/package.json b/GUI/package.json index bc570628..541f87af 100644 --- a/GUI/package.json +++ b/GUI/package.json @@ -7,7 +7,7 @@ "@buerokratt-ria/header": "^0.1.47", "@buerokratt-ria/menu": "^0.2.10", "@buerokratt-ria/styles": "^0.0.1", - "@buerokratt-ria/common-gui-components": "^0.0.41", + "@buerokratt-ria/common-gui-components": "^0.0.42", "@fontsource/roboto": "^4.5.8", "@formkit/auto-animate": "^1.0.0-beta.6", "@hookform/resolvers": "^2.9.11",