Skip to content

Conversation

Copy link

Copilot AI commented Nov 29, 2025

🤔 这个 PR 的性质是?

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

Tencent#6176

💡 需求背景和解决方案

TChatContent 组件无法自定义 markdown 渲染配置。新增 markedOptions prop 透传给 Marked 库。

Changes:

  • chat-content-props.ts - 新增 markedOptions prop 定义
  • chat-content.tsx - 使用 ref + watch 实现响应式 Marked 实例,支持动态更新配置
  • type.ts - 新增 markedOptions?: Record<string, any> 类型定义

Usage:

<TChatContent
  :content="markdownContent"
  :markedOptions="{
    breaks: true,
    gfm: true
  }"
/>

📝 更新日志

  • 本条 PR 不需要纳入 Changelog

tdesign-vue-next

@tdesign-vue-next/chat

  • feat(ChatContent): 新增 markedOptions 属性,支持自定义 markdown 渲染配置

@tdesign-vue-next/auto-import-resolver

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供
Original prompt

https://github.com/Tencent/tdesign-vue-next/compare/develop...chensid:tdesign-vue-next:develop?expand=1 帮我提交


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Submit merge request for develop branch fix(Chat): add markedOptions prop to TChatContent for custom markdown rendering Nov 29, 2025
Copilot AI requested a review from chensid November 29, 2025 11:10
Copilot finished work on behalf of chensid November 29, 2025 11:10
@chensid chensid marked this pull request as ready for review November 29, 2025 11:12
Copilot AI review requested due to automatic review settings November 29, 2025 11:12
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@chensid chensid merged commit ab5d573 into develop Nov 29, 2025
13 of 14 checks passed
@chensid chensid deleted the copilot/submit-merge-request branch November 29, 2025 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants