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