Kaynağa Gözat

add link of regix.com as comment

kosei-n 2 yıl önce
ebeveyn
işleme
d581046744

+ 1 - 0
packages/editor/src/services/list-util/markdown-list-util.ts

@@ -11,6 +11,7 @@ const getStrFromBol = (editor: EditorView) => {
   return editor.state.sliceDoc(getBol(editor), curPos);
 };
 
+// https://regex101.com/r/UKMNlO/1
 const indentAndMarkRE = /^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/;
 
 const insertText = (editor: EditorView, text: string) => {