diff --git a/src/components/Markdown/index.tsx b/src/components/Markdown/index.tsx
index e86d51933..1db278935 100644
--- a/src/components/Markdown/index.tsx
+++ b/src/components/Markdown/index.tsx
@@ -13,12 +13,20 @@ import 'katex/dist/katex.min.css';
import styles from './index.module.scss';
import { codeLight } from './codeLight';
-const Markdown = ({ source, isChatting = false }: { source: string; isChatting?: boolean }) => {
+const Markdown = ({
+ source,
+ isChatting = false,
+ formatLink
+}: {
+ source: string;
+ formatLink?: boolean;
+ isChatting?: boolean;
+}) => {
const { copyData } = useCopyData();
const formatSource = useMemo(() => {
- return formatLinkTextToHtml(source);
- }, [source]);
+ return formatLink ? formatLinkTextToHtml(source) : source;
+ }, [source, formatLink]);
return (
{item.systemPrompt && (
{item.systemPrompt && (