Tencent / Tencent/tdesign-miniprogram

[ChatMarkdown] 支持自定义markdown语法

Open
#4,289 1 comment 0 reactions 1 assignee View on GitHub

@zydemail is already working on this.

Since Mar 26, 2026.

💪🏻 enhancement 🧐 unconfirmed
Dominant language
Vue
Stars
1.8k
Forks
337
Avg merge
1d 21h
Merged PRs (30d)
19

Description

这个功能解决了什么问题

文档地址

目标:为 ChatMarkdown 组件提供可插拔的自定义 Markdown 语法/渲染扩展点,便于项目方在不修改组件源码的前提下扩展特殊语法(例如自定义标签、短语标记、表情、交互式块等)。

当前行为:组件文档描述了内置 Markdown 支持,但未暴露便于第三方扩展解析/渲染的插件接口(或说明不明确)。参考文档:ChatMarkdown 组件页面。
预期行为:

  1. 提供一个显式、向后兼容的扩展点,允许传入自定义解析规则或渲染器。
  2. 不影响现有用户。
你建议的方案是什么

类似于 antdx的实现

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.