Merge pull request #1340 from mattermost/markdown-image-fixes

Markdown image fixes.
Этот коммит содержится в:
Joram Wilander
2015-11-06 12:39:49 -05:00
родитель 190adae0c9 5fd8b56836
Коммит 8d7f1c1705
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;
}

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

@@ -8,11 +8,14 @@
margin-left: 4px;
}
}
.markdown-inline-img {
-moz-force-broken-image-icon: 1;
max-height: 500px;
height: 500px;
#post-list {
.markdown-inline-img {
-moz-force-broken-image-icon: 1;
max-height: 500px;
height: 500px;
}
}
.post-body {
hr {
height: 4px;