Skip to content

Commit

Permalink
fix: html raw render
Browse files Browse the repository at this point in the history
  • Loading branch information
crazywoola committed Sep 9, 2024
1 parent 61a0ca9 commit 3aa4cb2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions web/app/components/base/markdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import 'katex/dist/katex.min.css'
import RemarkMath from 'remark-math'
import RemarkBreaks from 'remark-breaks'
import RehypeKatex from 'rehype-katex'
import RehypeRaw from 'rehype-raw'
import RemarkGfm from 'remark-gfm'
import SyntaxHighlighter from 'react-syntax-highlighter'
import { atelierHeathLight } from 'react-syntax-highlighter/dist/esm/styles/hljs'
Expand Down Expand Up @@ -231,7 +230,6 @@ export function Markdown(props: { content: string; className?: string }) {
remarkPlugins={[[RemarkGfm, RemarkMath, { singleDollarTextMath: false }], RemarkBreaks]}
rehypePlugins={[
RehypeKatex,
RehypeRaw as any,
// The Rehype plug-in is used to remove the ref attribute of an element
() => {
return (tree) => {
Expand Down

0 comments on commit 3aa4cb2

Please sign in to comment.