chore: Remove math plugins from MarkdownLite

This commit is contained in:
Danny Avila 2025-07-09 18:45:08 -04:00
parent edfc264b65
commit d393099d52
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956

View file

@ -1,7 +1,5 @@
import { memo } from 'react';
import remarkGfm from 'remark-gfm';
import remarkMath from 'remark-math';
import rehypeKatex from 'rehype-katex';
import supersub from 'remark-supersub';
import ReactMarkdown from 'react-markdown';
import rehypeHighlight from 'rehype-highlight';
@ -13,7 +11,6 @@ import { langSubset } from '~/utils';
const MarkdownLite = memo(
({ content = '', codeExecution = true }: { content?: string; codeExecution?: boolean }) => {
const rehypePlugins: PluggableList = [
[rehypeKatex],
[
rehypeHighlight,
{
@ -32,7 +29,6 @@ const MarkdownLite = memo(
/** @ts-ignore */
supersub,
remarkGfm,
[remarkMath, { singleDollarTextMath: false }],
]}
/** @ts-ignore */
rehypePlugins={rehypePlugins}