refac
This commit is contained in:
1 parent
094a82b264
commit
901c997054
1 file changed
+1
-1
@@ -1149,7 +1149,7 @@
|
|||||||
const lineStart = $from.before($from.depth);
|
const lineStart = $from.before($from.depth);
|
||||||
const lineEnd = $from.after($from.depth);
|
const lineEnd = $from.after($from.depth);
|
||||||
const lineText = state.doc.textBetween(lineStart, lineEnd, '\n', '\0').trim();
|
const lineText = state.doc.textBetween(lineStart, lineEnd, '\n', '\0').trim();
|
||||||
if (lineText === '```') {
|
if (lineText.startsWith('```')) {
|
||||||
// Fix GitHub issue #16337: prevent backtick removal for lines starting with ```
|
// Fix GitHub issue #16337: prevent backtick removal for lines starting with ```
|
||||||
return false; // Let ProseMirror handle the Enter key normally
|
return false; // Let ProseMirror handle the Enter key normally
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user