Fixing broken markdown images taking up too much space. Fixed unnessisary expantion of markdown images not in center channel.

Этот коммит содержится в:
Christopher Speller
2015-11-06 11:40:48 -05:00
родитель cb1995eac2
Коммит 5fd8b56836
2 изменённых файлов: 8 добавлений и 5 удалений

Просмотреть файл

@@ -94,7 +94,7 @@ class MattermostMarkdownRenderer extends marked.Renderer {
if (title) {
out += ' title="' + title + '"';
}
out += ' onload="window.markdownImageLoaded(this)" class="markdown-inline-img"';
out += ' onload="window.markdownImageLoaded(this)" onerror="window.markdownImageLoaded(this)" class="markdown-inline-img"';
out += this.options.xhtml ? '/>' : '>';
return out;
}