1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-09-08 05:46:05 +00:00

Remove support for underscore and dash in wikilinks

Starting to fix #337
This commit is contained in:
Jermolene
2014-08-08 11:13:41 +01:00
parent bd92dc3692
commit d7390dbbe1
2 changed files with 8 additions and 4 deletions

View File

@@ -45,6 +45,11 @@ describe("WikiText tests", function() {
it("should support attributes specified as macro invocations", function() {
expect(wiki.renderTiddler("text/html","TiddlerFour")).toBe("<p><a class='tw-tiddlylink tw-tiddlylink-missing' href='#This%20is%20my%20''amazingly''%20groovy%20macro!'>This is a link</a></p>");
});
it("should identify wikiwords to automatically link", function() {
expect(wiki.renderText("text/html","text/vnd-tiddlywiki","No wikilinks here").indexOf("<a") !== -1).toBe(false);
expect(wiki.renderText("text/html","text/vnd-tiddlywiki","One WikiLink here").indexOf("<a") !== -1).toBe(true);
expect(wiki.renderText("text/html","text/vnd-tiddlywiki","No Wiki-Link here").indexOf("<a") !== -1).toBe(false);
});
});