# RTE 删除了包装语法中的引号

**URL:** <https://meta.discourse.org/t/rte-removes-quotation-marks-within-wrap-syntax/406488>\
**Category:** Bug\
**Tags:** composer\
**Created:** [2026年六月30日 20:57 UTC](https://meta.discourse.org/t/rte-removes-quotation-marks-within-wrap-syntax/406488 "2026-06-30T20:57:01Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)\
**Post date:** [2026年六月30日 20:57 UTC](https://meta.discourse.org/t/rte-removes-quotation-marks-within-wrap-syntax/406488/1 "2026-06-30T20:57:02Z")

</div>

我注意到在 [Homepage Feature](https://meta.discourse.org/t/homepage-feature/144264/1?silent=true) 中，主题安装包裹内的引号在编辑后消失了。

我认为这是富文本编辑器（RTE）导致的。我尝试寻找一个最小复现步骤：

1. 在 Markdown 模式下，将以下内容粘贴到编辑器中

```plaintext
[wrap=theme-install-button repo-name="Homepage Feature" repo-url=https://github.com/discourse/discourse-homepage-feature-component]
Install this theme component

[/wrap]

test 

```

1. 使用切换按钮切换到富文本编辑器（RTE）
2. 再次使用切换按钮，检查“Homepage Feature”周围的引号是否仍然存在。在我的测试中，引号按预期存在。
3. 在草稿中添加 #official

```plaintext
[wrap=theme-install-button repo-name="Homepage Feature" repo-url=https://github.com/discourse/discourse-homepage-feature-component]
Install this theme component

[/wrap]

test #official

```

1. 再次切换到富文本编辑器，然后切换回 Markdown 模式  
**预期结果：** 引号仍然存在。  
**实际结果：** 引号缺失，导致使用按钮的用户被询问是否要安装“Homepage”。  
 ![image](https://global.discourse-cdn.com/meta/original/4X/3/f/0/3f0bfec5ef09f66728bc1fd3d66ed4f9a4bcf9ca.png)

---

_[View the full topic](https://meta.discourse.org/t/rte-removes-quotation-marks-within-wrap-syntax/406488)._
