mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
chore(subParsers/images): fix jshint error
Quick fix for jshint error that was preventing Travis to test the lib properly
This commit is contained in:
parent
9a2411b05f
commit
6f01208836
|
@ -39,7 +39,7 @@ showdown.subParser('images', function (text, options, globals) {
|
|||
url = showdown.helper.escapeCharacters(url, '*_', false);
|
||||
var result = '<img src="' + url + '" alt="' + altText + '"';
|
||||
|
||||
if (title != "") {
|
||||
if (title) {
|
||||
title = title.replace(/"/g, '"');
|
||||
title = showdown.helper.escapeCharacters(title, '*_', false);
|
||||
result += ' title="' + title + '"';
|
||||
|
|
Loading…
Reference in New Issue
Block a user