fix: 优化markdown解析器
This commit is contained in:
@@ -47,6 +47,10 @@ interface EnhancedChatMessageV2Props {
|
||||
enableReferences?: boolean;
|
||||
/** 自定义样式类名 */
|
||||
className?: string;
|
||||
/** 已选中的标签列表 */
|
||||
selectedTags?: string[];
|
||||
/** 标签点击回调 */
|
||||
onTagClick?: (tag: string) => void;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -58,7 +62,9 @@ export const EnhancedChatMessageV2: React.FC<EnhancedChatMessageV2Props> = ({
|
||||
showSources = true,
|
||||
enableMaterialCards = true,
|
||||
enableReferences = true,
|
||||
className = ''
|
||||
className = '',
|
||||
selectedTags = [],
|
||||
onTagClick
|
||||
}) => {
|
||||
const [copied, setCopied] = useState(false);
|
||||
const [expandedSources, setExpandedSources] = useState(false);
|
||||
@@ -205,6 +211,8 @@ export const EnhancedChatMessageV2: React.FC<EnhancedChatMessageV2Props> = ({
|
||||
showDetails={true}
|
||||
className="cursor-pointer"
|
||||
onViewLarge={() => handleMaterialClick(source as GroundingSource)}
|
||||
selectedTags={selectedTags}
|
||||
onTagClick={onTagClick}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user