Added theme class to markdown links

This commit is contained in:
hmhealey
2015-09-21 11:41:40 -04:00
parent 7255209b72
commit a2e3446e37

View File

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