Ivan Asmer 4 年之前
父節點
當前提交
dac84d96d9
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      index.mjs

+ 2 - 2
index.mjs

@@ -28,7 +28,7 @@ const syntax = {
     img:{
         paired: true,
         recursive: false,
-        startRegexp: /!\[(.*)\]\(/,
+        startRegexp: /!(\s*)\[(.*)\]\(/,
         endRegexp: /\)/,
         content: {
             start: {
@@ -46,7 +46,7 @@ const syntax = {
             offset: 1
         },
         title: {
-            //index: 1,
+            index: 2,
             recursive: false,
         },
         onbuild(md, mdTags, buildAST){ //this = {tag: }