Commits

Ville Saalo committed 102be9c

#31 / #58: Creole

Extending Creole support to handle ==titles== without a space after the first set of equal signs.

  • Participants
  • Parent commits 4eed07f
  • Branches default

Comments (0)

Files changed (1)

 
     for (var i = 1; i <= 6; i++) {
         g['h' + i] = { tag: 'h' + i, capture: 2,
-            regex: '(^|\\n)[ \\t]*={' + i + '}[ \\t]' +
+            regex: '(^|\\n)[ \\t]*={' + i + '}(?!=)[ \\t]*' +
                    '([^~]*?(~(.|(?=\\n)|$))*)[ \\t]*=*\\s*(\\n|$)'
         };
     }