From a2e3446e373c51e595fb4e80a04bf80c3ea18027 Mon Sep 17 00:00:00 2001
From: hmhealey <harrisonmhealey@gmail.com>
Date: Mon, 21 Sep 2015 11:41:40 -0400
Subject: Added theme class to markdown links

---
 web/react/utils/markdown.jsx | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

(limited to 'web/react/utils/markdown.jsx')

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;
     }
 }
-- 
cgit v1.2.3-1-g7c22

