1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-24 17:10:29 +00:00

Removed parser switch

This commit is contained in:
Jeremy Ruston 2012-07-14 18:08:00 +01:00
parent 6d278ea4a1
commit c74d608418
4 changed files with 3 additions and 6 deletions

View File

@ -36,9 +36,6 @@ if(typeof(window) === "undefined" && !global.$tw) {
exports.$tw = $tw; exports.$tw = $tw;
} }
// Temporary switch for replacing the old wiki text parser with the new one
$tw.useNewParser = true;
// Boot information // Boot information
$tw.boot = {}; $tw.boot = {};

View File

@ -292,7 +292,7 @@ WikiTextParser.prototype.parse = function(type,text) {
}); });
}; };
exports[$tw.useNewParser ? "text/x-tiddlywiki" : "text/x-tiddlywiki-new"] = WikiTextParser; exports["text/x-tiddlywiki"] = WikiTextParser;
exports["text/x-tiddlywiki-run"] = WikiTextParser; exports["text/x-tiddlywiki-run"] = WikiTextParser;

View File

@ -182,6 +182,6 @@ WikiTextParser.prototype.subWikifyTerm = function(output,terminatorRegExp) {
this.output = oldOutput; this.output = oldOutput;
}; };
exports[$tw.useNewParser ? "text/x-tiddlywiki-old" : "text/x-tiddlywiki"] = WikiTextParser; exports["text/x-tiddlywiki-old"] = WikiTextParser;
})(); })();

View File

@ -357,7 +357,7 @@ exports.initParsers = function(moduleType) {
} }
} }
// Install the rules for the old wikitext parser rules // Install the rules for the old wikitext parser rules
var wikitextparser = this.parsers[$tw.useNewParser ? "text/x-tiddlywiki-old" : "text/x-tiddlywiki"]; var wikitextparser = this.parsers["text/x-tiddlywiki-old"];
if(modules && wikitextparser) { if(modules && wikitextparser) {
wikitextparser.installRules(); wikitextparser.installRules();
} }