Compare commits

...

1 Commits

Author SHA1 Message Date
Django149
07dc150779 Add RTL support 2025-10-04 22:59:44 +03:00

View File

@@ -97,15 +97,17 @@ export const renderMarkdown = (
textSize: string = "text-base"
): JSX.Element => {
return (
<ReactMarkdown
className={`prose dark:prose-invert max-w-full ${textSize}`}
components={markdownComponents}
remarkPlugins={[remarkGfm, [remarkMath, { singleDollarTextMath: false }]]}
rehypePlugins={[[rehypePrism, { ignoreMissing: true }], rehypeKatex]}
urlTransform={transformLinkUri}
>
{content}
</ReactMarkdown>
<div dir="auto">
<ReactMarkdown
className={`prose dark:prose-invert max-w-full ${textSize}`}
components={markdownComponents}
remarkPlugins={[remarkGfm, [remarkMath, { singleDollarTextMath: false }]]}
rehypePlugins={[[rehypePrism, { ignoreMissing: true }], rehypeKatex]}
urlTransform={transformLinkUri}
>
{content}
</ReactMarkdown>
</div>
);
};