Skip to content

Commit d9fad89

Browse files
committed
docs: 更新列表后反引号注释为英文
1 parent 0188bbf commit d9fad89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/x-markdown/src/XMarkdown/hooks/useStreaming.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const tokenRecognizerMap: Partial<Record<StreamCacheTokenType, Recognizer>> = {
9393
isStartOfToken: (markdown: string) => /^[-+*]/.test(markdown),
9494
isStreamingValid: (markdown: string) =>
9595
STREAM_INCOMPLETE_REGEX.list.some((re) => re.test(markdown)),
96-
// list 后紧跟 ` 时只提交列表前缀,余下留给 inline-code(- * 可能为多级列表,不处理)
96+
// On backtick after list, commit only the prefix; treat the rest as inline code.
9797
getCommitPrefix: (pending: string) => {
9898
const listPrefix = pending.match(/^([-+*]\s{0,3})/)?.[1];
9999
const rest = listPrefix ? pending.slice(listPrefix.length) : '';

0 commit comments

Comments
 (0)