Added theme class to markdown links

Этот коммит содержится в:
hmhealey
2015-09-21 11:41:40 -04:00
родитель 7255209b72
Коммит a2e3446e37

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

@@ -11,6 +11,12 @@ export class MattermostMarkdownRenderer extends marked.Renderer {
outHref = `http://${outHref}`;
}
return super.link(outHref, title, text);
let output = '<a class="theme" href="' + outHref + '"';
if (title) {
output += ' title="' + title + '"';
}
output += '>' + text + '</a>';
return output;
}
}