mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-24 17:10:29 +00:00
Removed parser switch
This commit is contained in:
parent
6d278ea4a1
commit
c74d608418
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user