Skip to content

Commit

Permalink
feat: add and close #200
Browse files Browse the repository at this point in the history
  • Loading branch information
Xylight committed Nov 30, 2023
1 parent 76fa5b7 commit d483ff8
Show file tree
Hide file tree
Showing 4 changed files with 351 additions and 81 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"jsdom": "^22.1.0",
"lemmy-js-client": "^0.19.0-rc.13",
"markdown-it-container": "^3.0.0",
"markdown-it-html5-media": "^0.7.1",
"markdown-it-sub": "^1.0.0",
"markdown-it-sup": "^1.0.0",
"nprogress": "^0.2.0",
Expand Down
5 changes: 5 additions & 0 deletions src/lib/components/markdown/Markdown.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
links.forEach((l) => {
const photonified = photonify(l.href)
if (photonified) l.href = photonified
else {
l.target = '_blank'
l.rel = 'noopener noreferrer'
}
})
}
Expand Down
Loading

0 comments on commit d483ff8

Please sign in to comment.