Merge pull request #736 from hmhealey/plt312

PLT-312 Added theme class to markdown links
Этот коммит содержится в:
Joram Wilander
2015-09-21 12:13:44 -04:00
родитель a35fa9c974 a2e3446e37
Коммит 977ab87d4a

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

@@ -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;
}
}