We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2c10bf2 + 166a5c1 commit de71033Copy full SHA for de71033
browser/components/MarkdownPreview.js
@@ -532,11 +532,6 @@ export default class MarkdownPreview extends React.Component {
532
e.stopPropagation()
533
534
const href = e.target.href
535
- if (href.match(/^http/i)) {
536
- shell.openExternal(href)
537
- return
538
- }
539
-
540
const linkHash = href.split('/').pop()
541
542
const regexNoteInternalLink = /main.html#(.+)/
@@ -568,6 +563,9 @@ export default class MarkdownPreview extends React.Component {
568
563
eventEmitter.emit('list:jump', linkHash.split('-')[1])
569
564
return
570
565
}
566
+
567
+ // other case
+ shell.openExternal(href)
571
572
573
render () {
0 commit comments