diff --git a/plugins/tiddlywiki/tw2parser/plugin.bundle b/plugins/tiddlywiki/tw2parser/plugin.bundle new file mode 100644 index 000000000..23ffdfedd --- /dev/null +++ b/plugins/tiddlywiki/tw2parser/plugin.bundle @@ -0,0 +1,7 @@ +{ + "title": "$:/plugins/tiddlywiki/tw2parser", + "description": "A parser for TiddlyWiki 2.x.x style wikitext", + "author": "JeremyRuston", + "version": "0.0.0", + "coreVersion": ">=5.0.0" +} diff --git a/core/modules/parsers/wikitextparser/wikitextparser.js b/plugins/tiddlywiki/tw2parser/wikitextparser.js similarity index 98% rename from core/modules/parsers/wikitextparser/wikitextparser.js rename to plugins/tiddlywiki/tw2parser/wikitextparser.js index 950c21979..9947745a9 100644 --- a/core/modules/parsers/wikitextparser/wikitextparser.js +++ b/plugins/tiddlywiki/tw2parser/wikitextparser.js @@ -1,5 +1,5 @@ /*\ -title: $:/core/modules/parsers/wikitextparser/wikitextparser.js +title: $:/plugins/tiddlywiki/tw2parser/wikitextparser.js type: application/javascript module-type: parser @@ -54,7 +54,7 @@ var WikiTextParser = function(options) { }; WikiTextParser.prototype.installRules = function() { - var rules = require("./rules/wikitextrules.js").rules, + var rules = require("./wikitextrules.js").rules, pattern = []; for(var n=0; n