From 226b1b2cd02f0cba7d61f9e060dc08b43ea6b469 Mon Sep 17 00:00:00 2001 From: matushl Date: Sat, 11 Nov 2023 23:50:24 +0100 Subject: [PATCH] Render HTML in Problem --- src/components/Latex/Latex.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Latex/Latex.tsx b/src/components/Latex/Latex.tsx index 454c6511..a62bc6fe 100644 --- a/src/components/Latex/Latex.tsx +++ b/src/components/Latex/Latex.tsx @@ -33,7 +33,7 @@ export const Latex: FC<{children: string}> = ({children}) => { for (const m of matches) { result.push( - {children.slice(currentPosition, m.index)}, + , , ) @@ -42,7 +42,7 @@ export const Latex: FC<{children: string}> = ({children}) => { } } - result.push({children.slice(Math.max(0, currentPosition))}) + result.push() return ( // nas globalny CSS reset nastavuje SVGcka na display:block, tak to tu resetneme nazad na inline