Przeglądaj źródła

add link of regix.com as comment

kosei-n 2 lat temu
rodzic
commit
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);
   return editor.state.sliceDoc(getBol(editor), curPos);
 };
 };
 
 
+// https://regex101.com/r/UKMNlO/1
 const indentAndMarkRE = /^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/;
 const indentAndMarkRE = /^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]))(\s*)/;
 
 
 const insertText = (editor: EditorView, text: string) => {
 const insertText = (editor: EditorView, text: string) => {