summaryrefslogtreecommitdiffstats
path: root/web/react/utils
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-09-21 11:41:40 -0400
committerhmhealey <harrisonmhealey@gmail.com>2015-09-21 11:46:29 -0400
commita2e3446e373c51e595fb4e80a04bf80c3ea18027 (patch)
treef38fa610b0a3a7ee4a5870a76930eb364f56c73b /web/react/utils
parent7255209b726c87692d402dfab0bcdc71e340daf9 (diff)
downloadchat-a2e3446e373c51e595fb4e80a04bf80c3ea18027.tar.gz
chat-a2e3446e373c51e595fb4e80a04bf80c3ea18027.tar.bz2
chat-a2e3446e373c51e595fb4e80a04bf80c3ea18027.zip
Added theme class to markdown links
Diffstat (limited to 'web/react/utils')
-rw-r--r--web/react/utils/markdown.jsx8
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;
}
}