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.
1 parent e857502 commit 168713fCopy full SHA for 168713f
src/block/node/ExternalLinkNode.ts
@@ -3,9 +3,9 @@ import { createNodeParser } from './creator'
3
import type { LinkNode } from './type'
4
import type { NodeCreator } from './creator'
5
6
-const hrefFirstUrlRegExp = /\[https?:\/\/[^\s\]]+(?:\s+[^\]]*[^\s])?\]/
7
-const contentFirstUrlRegExp = /\[[^\]]*[^\s]\s+https?:\/\/[^\s\]]+\]/
8
-const httpRegExp = /(?<=^| )https?:\/\/[^\s\]]+/
+const hrefFirstUrlRegExp = /\[https?:\/\/[^\s\]]+(?:\s+[^[\]]*[^\s])?\]/
+const contentFirstUrlRegExp = /\[[^[\]]*[^\s]\s+https?:\/\/[^\s\]]+\]/
+const httpRegExp = /(?<=^| )https?:\/\/[^[\s\]]+/
9
10
const createExternalLinkNode: NodeCreator<LinkNode> = target => {
11
if (target.startsWith('[') && target.endsWith(']')) {
0 commit comments