From 63cc208ec71e206d53ba5810fef03b8091041236 Mon Sep 17 00:00:00 2001 From: azivner Date: Mon, 4 Sep 2017 18:51:07 -0400 Subject: [PATCH] fix for link doubling --- static/js/html2notecase.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/js/html2notecase.js b/static/js/html2notecase.js index ada8f6aee..0482a3538 100644 --- a/static/js/html2notecase.js +++ b/static/js/html2notecase.js @@ -106,6 +106,9 @@ function html2notecase(contents, note) { contents = contents.substr(0, index) + linkText + contents.substr(index + linkMatch[0].length); + // we'll skip the link text so that it's not processed twice (second time by link auto detection) + index += linkText.length; + found = true; }