🎨 style: Improve KaTeX Rendering for LaTeX Equations (#7223)

This commit is contained in:
andresgit 2025-05-06 17:50:09 +03:00 committed by GitHub
parent 8e1012c5aa
commit 20c9f1a783
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 7 additions and 6 deletions

View file

@ -184,7 +184,7 @@ const Markdown = memo(({ content = '', isLatestMessage }: TContentProps) => {
const rehypePlugins = useMemo(
() => [
[rehypeKatex, { output: 'mathml' }],
[rehypeKatex],
[
rehypeHighlight,
{

View file

@ -13,7 +13,7 @@ import { langSubset } from '~/utils';
const MarkdownLite = memo(
({ content = '', codeExecution = true }: { content?: string; codeExecution?: boolean }) => {
const rehypePlugins: PluggableList = [
[rehypeKatex, { output: 'mathml' }],
[rehypeKatex],
[
rehypeHighlight,
{