mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Added theme class to markdown links
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user