Skip to content

Commit

Permalink
AppContent: override links with SafeLinks in markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
AquiGorka committed Apr 26, 2019
1 parent c151cf8 commit a877de9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/apps/AppCenter/InstalledApps/AppContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,15 @@ const AppContent = React.memo(({ repo, repoVersions, onRequestUpgrade }) => {
<Markdown>
{
remark()
.use(remark2react)
.use(remark2react, {
remarkReactComponents: {
a: ({ children, ...props }) => (
<SafeLink target="_blank" {...props}>
{children}
</SafeLink>
),
},
})
.processSync(repoDetails).contents
}
</Markdown>
Expand Down

0 comments on commit a877de9

Please sign in to comment.