# 括号内的文本不加粗格式

**URL:** <https://meta.discourse.org/t/no-bold-formatting-of-text-in-parentheses/167390>\
**Category:** Product Support\
**Created:** [2020 年10 月 16 日 18:21 UTC](https://meta.discourse.org/t/no-bold-formatting-of-text-in-parentheses/167390 "2020-10-16T18:21:27Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![tmomas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tmomas/32/109144_2.png) [@tmomas](https://meta.discourse.org/u/tmomas)\
发布日期： [2020 年10 月 16 日 18:21 UTC](https://meta.discourse.org/t/no-bold-formatting-of-text-in-parentheses/167390/1 "2020-10-16T18:21:27Z")

</div>

**问题：** 当括号前后存在其他字符时，括号内的文本无法加粗。

我们希望高亮 **(5255)** 的示例文本：

> 1.0.15 Build 20200721 rel.40773(5255)

40773\*\*(5255)\*\* → 失败  
**40773** (5255)  
40773 **5255**

* * *

现在我们在第一行末尾添加一个点。  
注意第 1、2、3 行发生了变化：

40773\*\*(5255)**。  
 40773(5255)  
40773**5255\*\*

* * *

# 尝试其他示例

## 无括号：一切正常。

**paren** theses → 正常  
paren **theses** → 正常  
a **parentheses** 1 → 正常  
a **parentheses** a → 正常  
a **parentheses**.1 → 正常  
a **parentheses** #1 → 正常  
a **parentheses**?1 → 正常

## 含括号：出现异常。

**parentheses** → 正常  
**(parentheses)** → 正常  
\*\*(parentheses)\*\*1 → 失败  
**(parentheses)**.1 → 正常  
\*\*(parentheses)\*\*a → 失败  
**(parentheses)**.a → 失败  
**(parentheses)**#1 → 正常  
**(parentheses)**?1 → 正常

a\*\*(parentheses)**1 → 失败  
a**(parentheses)\*\*1 → 失败

a\*\*(parentheses)\*\*1 → 失败

* * *

两行相同内容，中间用空行分隔

paren\*\*(thes)\*\*es → 失败

paren\*\*(thes)\*\*es → 失败

* * *

同上，但中间没有空行分隔

**(paren)theses → 失败  
paren(theses)** → 失败

* * *

---

_[View the full topic](https://meta.discourse.org/t/no-bold-formatting-of-text-in-parentheses/167390)._
