Skip to content

Commit

Permalink
fix: change rehypeKatex output format from 'html' to 'markdown'
Browse files Browse the repository at this point in the history
  • Loading branch information
athrael-soju committed Jan 20, 2025
1 parent 5769c09 commit acac97c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/markdown.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'katex/dist/katex.min.css';
import Link from 'next/link';
import React, { memo, useMemo, useState } from 'react';
import ReactMarkdown, { type Components } from 'react-markdown';
Expand Down Expand Up @@ -107,7 +106,7 @@ const NonMemoizedMarkdown = ({ children }: { children: string }) => {
return (
<ReactMarkdown
remarkPlugins={[remarkGfm, [remarkMath, { singleDollarTextMath: false }]]}
rehypePlugins={[[rehypeKatex, { output: 'html' }]]}
rehypePlugins={[[rehypeKatex, { output: 'markdown' }]]}
components={components}
>
{processedText}
Expand Down

0 comments on commit acac97c

Please sign in to comment.