refactor: rename to animated

This commit is contained in:
Henry Li
2025-05-11 00:07:33 +08:00
committed by Willem Jiang
parent 28b65d7a93
commit 07f965f0df
4 changed files with 29 additions and 20 deletions

View File

@@ -24,20 +24,20 @@ export function Markdown({
children,
style,
enableCopy,
animate = false,
animated = false,
...props
}: ReactMarkdownOptions & {
className?: string;
enableCopy?: boolean;
style?: React.CSSProperties;
animate?: boolean;
animated?: boolean;
}) {
const rehypePlugins = useMemo(() => {
if (animate) {
if (animated) {
return [rehypeKatex, rehypeSplitWordsIntoSpans];
}
return [rehypeKatex];
}, [animate]);
}, [animated]);
return (
<div
className={cn(