diff --git a/lib/marked.js b/lib/marked.js index 2fdeb33e3d..60ac41f60f 100644 --- a/lib/marked.js +++ b/lib/marked.js @@ -461,7 +461,7 @@ var inline = { escape: /^\\([\\`*{}\[\]()#+\-.!_>])/, autolink: /^<(scheme:[^\s\x00-\x1f<>]*|email)>/, url: noop, - tag: /^|^<\/?[a-zA-Z0-9\-]+(?:"[^"]*"|'[^']*'|\s[^<'">\/\s]*)*?\/?>/, + tag: /^|^<\/?[a-zA-Z0-9\-]+(?:="[^"]*"|='[^']*'|=[^<>\s]+|\s[^<=>\/\s]*)*?\/?>/, link: /^!?\[(inside)\]\(href\)/, reflink: /^!?\[(inside)\]\s*\[([^\]]*)\]/, nolink: /^!?\[((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\]/, diff --git a/test/new/issue_1411.html b/test/new/issue_1411.html new file mode 100644 index 0000000000..076d17838f --- /dev/null +++ b/test/new/issue_1411.html @@ -0,0 +1 @@ +

diff --git a/test/new/issue_1411.md b/test/new/issue_1411.md new file mode 100644 index 0000000000..a9820aaea4 --- /dev/null +++ b/test/new/issue_1411.md @@ -0,0 +1 @@ +