We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0188bbf commit d9fad89Copy full SHA for d9fad89
packages/x-markdown/src/XMarkdown/hooks/useStreaming.ts
@@ -93,7 +93,7 @@ const tokenRecognizerMap: Partial<Record<StreamCacheTokenType, Recognizer>> = {
93
isStartOfToken: (markdown: string) => /^[-+*]/.test(markdown),
94
isStreamingValid: (markdown: string) =>
95
STREAM_INCOMPLETE_REGEX.list.some((re) => re.test(markdown)),
96
- // list 后紧跟 ` 时只提交列表前缀,余下留给 inline-code(- * 可能为多级列表,不处理)
+ // On backtick after list, commit only the prefix; treat the rest as inline code.
97
getCommitPrefix: (pending: string) => {
98
const listPrefix = pending.match(/^([-+*]\s{0,3})/)?.[1];
99
const rest = listPrefix ? pending.slice(listPrefix.length) : '';
0 commit comments