mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-03 19:38:02 +00:00
Removed parser switch
This commit is contained in:
@@ -36,9 +36,6 @@ if(typeof(window) === "undefined" && !global.$tw) {
|
||||
exports.$tw = $tw;
|
||||
}
|
||||
|
||||
// Temporary switch for replacing the old wiki text parser with the new one
|
||||
$tw.useNewParser = true;
|
||||
|
||||
// Boot information
|
||||
$tw.boot = {};
|
||||
|
||||
|
@@ -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;
|
||||
|
||||
|
@@ -182,6 +182,6 @@ WikiTextParser.prototype.subWikifyTerm = function(output,terminatorRegExp) {
|
||||
this.output = oldOutput;
|
||||
};
|
||||
|
||||
exports[$tw.useNewParser ? "text/x-tiddlywiki-old" : "text/x-tiddlywiki"] = WikiTextParser;
|
||||
exports["text/x-tiddlywiki-old"] = WikiTextParser;
|
||||
|
||||
})();
|
||||
|
@@ -357,7 +357,7 @@ exports.initParsers = function(moduleType) {
|
||||
}
|
||||
}
|
||||
// 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) {
|
||||
wikitextparser.installRules();
|
||||
}
|
||||
|
Reference in New Issue
Block a user