feat: enable Math support in Markdown rendering.
- Enabled Math support in Markdown rendering without single dollar text math.
This commit is contained in:
parent
a3f5223b4c
commit
10b4e3c634
@ -31,7 +31,7 @@ const Markdown: FC<Props> = ({ message }) => {
|
||||
<ReactMarkdown
|
||||
className="markdown"
|
||||
rehypePlugins={[rehypeKatex]}
|
||||
remarkPlugins={[[remarkMath, { singleDollarTextMath: false }], remarkGfm]}
|
||||
remarkPlugins={[remarkMath, remarkGfm]}
|
||||
remarkRehypeOptions={{
|
||||
footnoteLabel: t('common.footnotes'),
|
||||
footnoteLabelTagName: 'h4',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user