Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.

Commit f73427d

Browse files
committed
Refactor: Enhance markdown stripping in Desktop component and improve layout styling in MarkdownDescription
1 parent eb3d568 commit f73427d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pages/game-shop.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ const Desktop: React.FC<ShopProps> = ({ games, loading, error, prompt, alert, ha
265265
}, [games]);
266266

267267
const stripMarkdown = (text: string) => {
268-
return text.replace(/\*\*|__|\*|_|`|~~|\[.*?\]\(.*?\)|<.*?>/g, '').trim();
268+
return text.replace(/[#]+|\*\*|__|\*|_|`|~~|\[.*?\]\(.*?\)|<.*?>/g, '').trim();
269269
};
270270

271271
const filteredGames = useMemo(() => {

pages/game.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ function useGamePageLogic() {
198198

199199
function MarkdownDescription({ children }: { children: string }) {
200200
return (
201-
<div className='markdown-body glass-card'>
201+
<div className='markdown-body glass-card w-full mx-auto'>
202202
<ReactMarkdown
203203
remarkPlugins={[remarkGfm]}
204204
rehypePlugins={[

0 commit comments

Comments
 (0)