Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions browser/components/MarkdownPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,15 @@ export default class MarkdownPreview extends React.Component {
}

handlelinkClick (e) {
e.preventDefault()
e.stopPropagation()

const href = e.target.href
if (href.match(/^http/i)) {
shell.openExternal(href)
return
}

const noteHash = e.target.href.split('/').pop()
// this will match the new uuid v4 hash and the old hash
// e.g.
Expand Down