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: }