Ivan Asmer пре 4 година
родитељ
комит
b3b9bcba96
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      index.mjs

+ 1 - 1
index.mjs

@@ -335,7 +335,7 @@ const syntax = {
     heading1: {
         paired: true,
         recursive: true,
-        startRegexp: /\n#[ \t]*([^\[]*)(\[#(\S*)[ \t]*(.*)\])?\n/gm,
+        startRegexp: /\n#[ \t]*([^\[]*)(\[#(\S*)[ \t]*(.*)\])?\n/m,
         endRegexp: /\n#\s/,
         content: {
             start: {