Treat links as external in report content admin message
This marks all the links in the report content admin message (in Markdown format) as external so they open in a new tab.
This commit is contained in:
parent
2e0977fb0c
commit
a504faa2f6
2 changed files with 20 additions and 2 deletions
|
@ -102,7 +102,7 @@ export default class ReportEventDialog extends PureComponent {
|
|||
SdkConfig.get().reportEvent.adminMessageMD;
|
||||
let adminMessage;
|
||||
if (adminMessageMD) {
|
||||
const html = new Markdown(adminMessageMD).toHTML();
|
||||
const html = new Markdown(adminMessageMD).toHTML({ externalLinks: true });
|
||||
adminMessage = <p dangerouslySetInnerHTML={{ __html: html }} />;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue