Skip to content

Commit

Permalink
feat(Addon/info): use external links
Browse files Browse the repository at this point in the history
  • Loading branch information
evenchange4 committed Jun 12, 2017
1 parent 71a48df commit 106514f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion addons/info/src/components/markdown/text.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ export function A(props) {
const style = {
color: '#3498db',
};
return <a href={props.href} style={style}>{props.children}</a>;
return (
<a href={props.href} target="_blank" rel="noopener noreferrer" style={style}>
{props.children}
</a>
);
}

A.defaultProps = defaultProps;
Expand Down

0 comments on commit 106514f

Please sign in to comment.