diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-09-21 11:41:40 -0400 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-09-21 11:46:29 -0400 |
commit | a2e3446e373c51e595fb4e80a04bf80c3ea18027 (patch) | |
tree | f38fa610b0a3a7ee4a5870a76930eb364f56c73b /web | |
parent | 7255209b726c87692d402dfab0bcdc71e340daf9 (diff) | |
download | chat-a2e3446e373c51e595fb4e80a04bf80c3ea18027.tar.gz chat-a2e3446e373c51e595fb4e80a04bf80c3ea18027.tar.bz2 chat-a2e3446e373c51e595fb4e80a04bf80c3ea18027.zip |
Added theme class to markdown links
Diffstat (limited to 'web')
-rw-r--r-- | web/react/utils/markdown.jsx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/web/react/utils/markdown.jsx b/web/react/utils/markdown.jsx index 8c63810cd..96da54217 100644 --- a/web/react/utils/markdown.jsx +++ b/web/react/utils/markdown.jsx @@ -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; } } |