Skip to content

Commit

Permalink
feat: 删除线语法使用标准markdown语法, 不再匹配单波浪号 (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
levidcd authored Mar 21, 2024
1 parent 96e41e0 commit 5dd4ff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Markdown/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const Markdown = memo<MarkdownProps>(
};

const rehypePlugins = [rehypeKatex, ...(outRehypePlugins || [])];
const remarkPlugins = [remarkGfm, remarkMath, ...(outRemarkPlugins || [])];
const remarkPlugins = [[remarkGfm,{singleTilde: false}], remarkMath, ...(outRemarkPlugins || [])];

return (
<Typography className={className} onDoubleClick={onDoubleClick} style={style}>
Expand Down

0 comments on commit 5dd4ff7

Please sign in to comment.