diff --git a/core/modules/parsers/wikiparser/rules/wikilink.js b/core/modules/parsers/wikiparser/rules/wikilink.js index dc146a047..6a59d395f 100644 --- a/core/modules/parsers/wikiparser/rules/wikilink.js +++ b/core/modules/parsers/wikiparser/rules/wikilink.js @@ -70,9 +70,7 @@ exports.serialize = function(tree, serialize) { var isSuppressed = tree.children[0].text.substr(0,1) === $tw.config.textPrimitives.unWikiLink; var serialized = isSuppressed ? $tw.config.textPrimitives.unWikiLink : ""; - // Append the link text serialized += tree.attributes.to.value; - // Return the complete serialized string return serialized; }; diff --git a/core/modules/parsers/wikiparser/rules/wikilinkprefix.js b/core/modules/parsers/wikiparser/rules/wikilinkprefix.js index 36aebf063..1de26d25c 100644 --- a/core/modules/parsers/wikiparser/rules/wikilinkprefix.js +++ b/core/modules/parsers/wikiparser/rules/wikilinkprefix.js @@ -39,9 +39,7 @@ exports.parse = function() { exports.serialize = function(tree, serialize) { var serialized = $tw.config.textPrimitives.unWikiLink; - // Append the text serialized += tree.text; - // Return the complete serialized string return serialized; }; diff --git a/editions/test/tiddlers/tests/test-wikitext-serialize.js b/editions/test/tiddlers/tests/test-wikitext-serialize.js index 6e881ac12..2871343cc 100644 --- a/editions/test/tiddlers/tests/test-wikitext-serialize.js +++ b/editions/test/tiddlers/tests/test-wikitext-serialize.js @@ -388,7 +388,6 @@ describe("WikiAST serialization unit tests", function () { serialized = $tw.utils.serializeParseTree(wiki.parseTiddler("TypedBlockTest2").tree).trimEnd(); expect(serialized).toBe(wiki.getTiddlerText("TypedBlockTest2").trimEnd()); }); - return; wiki.addTiddler({ title: "WikiLinkTest",