1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

Merge branch 'master' into attachment_refactoring

This commit is contained in:
Junyoung Choi
2018-04-26 16:24:58 -07:00
25 changed files with 835 additions and 329 deletions

View File

@@ -517,6 +517,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.