Skip to content

Commit

Permalink
Fix issue #1 from Max's QA list
Browse files Browse the repository at this point in the history
  • Loading branch information
zakhap committed Jul 15, 2021
1 parent 2b4c98b commit b1c9ff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/scripts/views/components/markdown_formatted_text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const marked = require('marked');

const renderer = new marked.Renderer();
renderer.link = (href, title, text) => {
return `<a ${!href.contains('://commonwealth.im/') && 'target="_blank"'} href="${href}">${text}</a>`;
return `<a ${href && href.indexOf('commonwealth.im/') >= 0 && 'target="_blank"'} href="${href}">${text}</a>`;
};

marked.setOptions({
Expand Down

0 comments on commit b1c9ff1

Please sign in to comment.