Unverified Commit 0025ba49 authored by Chenhe Gu's avatar Chenhe Gu Committed by GitHub

Escape capturing prices with dollar sign as math expressions (#1985)

parent 7c067634
...@@ -87,7 +87,7 @@ export function Markdown(props: { content: string; className?: string }) { ...@@ -87,7 +87,7 @@ export function Markdown(props: { content: string; className?: string }) {
return ( return (
<div className={cn(props.className, 'markdown-body')}> <div className={cn(props.className, 'markdown-body')}>
<ReactMarkdown <ReactMarkdown
remarkPlugins={[RemarkMath, RemarkGfm, RemarkBreaks]} remarkPlugins={[[RemarkMath, { singleDollarTextMath: false }], RemarkGfm, RemarkBreaks]}
rehypePlugins={[ rehypePlugins={[
RehypeKatex, RehypeKatex,
]} ]}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment