diff --git a/src/components/ChapterContentRenderer.tsx b/src/components/ChapterContentRenderer.tsx index a594dc9..5b32995 100644 --- a/src/components/ChapterContentRenderer.tsx +++ b/src/components/ChapterContentRenderer.tsx @@ -16,7 +16,7 @@ const ChapterRenderer: React.FC = ({ content, glossary }) // Replace glossary terms in the line Object.entries(glossary).forEach(([term, definition]) => { const termRegex = new RegExp(`\\b${term}\\b`, "gi"); // Match whole word (case-insensitive) - line = line.replace(termRegex, ``); + line = line.replace(termRegex, ``); }); line = line.replace(/

/g, "

").replace(/<\/p>/g, "
"); @@ -26,7 +26,11 @@ const ChapterRenderer: React.FC = ({ content, glossary }) return (
- {processed_lines.map((line, index) => ( + {processed_lines.map((line, index) => { + if (!line.includes("{parse(line)}
; + } + return (
{parse(line, { replace: (domNode: DOMNode) => { @@ -42,7 +46,8 @@ const ChapterRenderer: React.FC = ({ content, glossary }) }, })}
- ))} + ) + })} ); }; diff --git a/src/lib/types.tsx b/src/lib/types.tsx index c93f6b1..1dea276 100644 --- a/src/lib/types.tsx +++ b/src/lib/types.tsx @@ -81,7 +81,16 @@ export interface Release { datetime: string; url: string; } + +export interface Report { + error_type: string; + details: string; + resolve: boolean; +} + export const Ad = { patreon: "https://patreon.com/nulltranslationgroup/membership", } + + \ No newline at end of file