Skip to content

Commit

Permalink
set title to empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
UziTech committed Apr 17, 2018
1 parent 5aed724 commit 6869998
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/marked.js
Original file line number Diff line number Diff line change
Expand Up @@ -709,12 +709,13 @@ InlineLexer.prototype.output = function(src) {
if (link) {
href = link[1];
title = link[3];
} else {
title = '';
}
href = href.trim();
} else {
title = cap[3] ? cap[3].slice(1, -1) : cap[3];
title = cap[3] ? cap[3].slice(1, -1) : '';
}
href = href.replace(/^<([\s\S]*)>$/, '$1');
href = href.trim().replace(/^<([\s\S]*)>$/, '$1');
out += this.outputLink(cap, {
href: InlineLexer.escapes(href),
title: InlineLexer.escapes(title)
Expand Down

0 comments on commit 6869998

Please sign in to comment.