diff --git a/lib/inlines.js b/lib/inlines.js index 762f477f..7e3f74c7 100644 --- a/lib/inlines.js +++ b/lib/inlines.js @@ -46,7 +46,7 @@ var reLinkTitle = new RegExp( '\\((' + ESCAPED_CHAR + '|[^)\\x00])*\\))'); var reLinkDestinationBraces = new RegExp( - '^(?:[<](?:[^<>\\n\\\\\\x00]' + '|' + ESCAPED_CHAR + '|' + '\\\\)*[>])'); + '^(?:[<](?:[^<>\\n\\\\\\x00]' + '|' + ESCAPED_CHAR + ')*[>])'); var reEscapable = new RegExp('^' + ESCAPABLE); @@ -79,7 +79,7 @@ var reInitialSpace = /^ */; var reSpaceAtEndOfLine = /^ *(?:\n|$)/; var reLinkLabel = new RegExp('^\\[(?:[^\\\\\\[\\]]|' + ESCAPED_CHAR + - '|\\\\){0,1000}\\]'); + '){0,1000}\\]'); // Matches a string of non-special characters. var reMain = /^[^\n`\[\]\\!<&*_'"]+/m;