Skip to content

Commit

Permalink
Update Emphasis.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Cross1111 committed Oct 11, 2024
1 parent 5aa9988 commit 757e030
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/hooks/Emphasis.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default class Emphasis extends SyntaxBase {
};
const asterisk = {
begin: '(^|[^\\\\])(\\*+)(?!\\*)', // ?<leading>, ?<symbol>
//防止连续星号:改后的正则表达式不允许捕获的星号序列后紧跟另一个星号
// 防止连续星号:改后的正则表达式不允许捕获的星号序列后紧跟另一个星号
content: `(${emRegexp(allowWhitespace, '*')})`, // ?<text>
end: '\\2',
};
Expand Down

0 comments on commit 757e030

Please sign in to comment.