Skip to content

标签: 空白、 强调

别名:无强调空格

强调的符号和文字之间不能有空格

当使用强调标记(粗体、斜体),但标记和文本之间有空格时,会触发此规则:

js
Here is some ** bold ** text.

Here is some * italic * text.

Here is some more __ bold __ text.

Here is some more _ italic _ text.

要解决此问题,请删除强调标记周围的空格:

js
Here is some **bold** text.

Here is some *italic* text.

Here is some more __bold__ text.

Here is some more _italic_ text.

基本原理:只有当星号/下划线没有完全被空格包围时,强调才会被解析。该规则试图检测它们被空格包围的位置,但强调的文本似乎是作者有意为之的。