Merge pull request #736 from hmhealey/plt312
PLT-312 Added theme class to markdown links
Этот коммит содержится в:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user