From abd12eac97419210c602b48de74759d9042e73a4 Mon Sep 17 00:00:00 2001 From: brecert <11599528+Brecert@users.noreply.github.com> Date: Wed, 13 Nov 2019 13:41:30 -0500 Subject: [PATCH] fixed link parsing --- src/utils/markdown-rules/link.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/utils/markdown-rules/link.js b/src/utils/markdown-rules/link.js index 423bd2a..51f7362 100644 --- a/src/utils/markdown-rules/link.js +++ b/src/utils/markdown-rules/link.js @@ -8,7 +8,11 @@ export default (order) => { return { match: function(source) { const match = linkify.match(source) - if(match === null) { + if( + match === null || + match[0].index !== 0 || + match.length === 0 + ) { return null }