Comparing version 0.1.7 to 0.1.8
@@ -41,5 +41,5 @@ /** | ||
.replace('comment', /<!--[^\0]*?-->/.source) | ||
.replace('closed', /<(?!elements)(\w+)[^\0]+?<\/\1>/.source) | ||
.replace('closing', /<\w+(?!:\/|@)\b(?:"[^"]*"|'[^']*'|[^>])*>/.source) | ||
.replace('elements', elements()); | ||
.replace('closed', /<(tag)[^\0]+?<\/\1>/.source) | ||
.replace('closing', /<tag(?!:\/|@)\b(?:"[^"]*"|'[^']*'|[^'">])*?>/.source) | ||
.replace(/tag/g, tag()); | ||
@@ -63,3 +63,3 @@ return new RegExp(html); | ||
('blockquote') | ||
('<(?!' + elements() + ')\\w+') | ||
('<' + tag()) | ||
('def'); | ||
@@ -286,3 +286,3 @@ | ||
gfm_autolink: /^(\w+:\/\/[^\s]+[^.,:;"')\]\s])/, | ||
tag: /^<!--[^\0]*?-->|^<\/?\w+(?:"[^"]*"|'[^']*'|[^>])*>/, | ||
tag: /^<!--[^\0]*?-->|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/, | ||
link: /^!?\[((?:\[[^\]]*\]|[^\[\]]|\[|\](?=[^[\]]*\]))*)\]\(([^\)]*)\)/, | ||
@@ -628,9 +628,9 @@ reflink: /^!?\[((?:\[[^\]]*\]|[^\[\]]|\[|\](?=[^[\]]*\]))*)\]\s*\[([^\]]*)\]/, | ||
function elements() { | ||
var elements = '(?:' | ||
function tag() { | ||
var tag = '(?!(?:' | ||
+ 'a|em|strong|small|s|cite|q|dfn|abbr|data|time|code' | ||
+ '|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo' | ||
+ '|span|br|wbr|ins|del|img)\\b'; | ||
+ '|span|br|wbr|ins|del|img)\\b)\\w+'; | ||
return elements; | ||
return tag; | ||
} | ||
@@ -637,0 +637,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"author": "Christopher Jeffrey", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"main": "./lib/marked.js", | ||
@@ -8,0 +8,0 @@ "bin": { "marked": "./bin/marked" }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20933