From 001e4748ddf0a992b5af5cda7e8d5c679def61b5 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Sat, 6 Nov 2021 14:37:03 +0100 Subject: [PATCH] Use multiple underscore when there are multiple spaces --- editor/src/wikilinks2.js | 2 +- editor/test/markdown.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/src/wikilinks2.js b/editor/src/wikilinks2.js index 5e455d1..011bf3b 100644 --- a/editor/src/wikilinks2.js +++ b/editor/src/wikilinks2.js @@ -69,7 +69,7 @@ Plugin.prototype.render = function (tokens, id, options, env) { return ''; } } - return '' + (tag ? '#' : '') + link + ''; + return '' + (tag ? '#' : '') + link + ''; } export default (options) => { diff --git a/editor/test/markdown.test.js b/editor/test/markdown.test.js index 3bce29a..1adf48c 100644 --- a/editor/test/markdown.test.js +++ b/editor/test/markdown.test.js @@ -65,6 +65,6 @@ describe('MD', function () { }) it('parseLinks double url', function () { - assert.deepStrictEqual(MD.renderInline("[[test [[link]] test2]]"), 'test [[link]] test2') + assert.deepStrictEqual(MD.renderInline("[[test [[link]] test2]]"), 'test [[link]] test2') }) })