1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-12-19 07:08:06 +00:00

Switch to using the 'wikitextrule' moduletype for the new wiki text parser

This commit is contained in:
Jeremy Ruston
2012-05-27 09:19:37 +01:00
parent 5738d146e0
commit 506519b49a
12 changed files with 15 additions and 19 deletions

View File

@@ -53,8 +53,9 @@ var WikiTextParser = function(options) {
this.autoLinkWikiWords = true;
};
WikiTextParser.prototype.installRules = function(rules) {
var pattern = [];
WikiTextParser.prototype.installRules = function() {
var rules = require("./rules/wikitextrules.js").rules,
pattern = [];
for(var n=0; n<rules.length; n++) {
pattern.push("(" + rules[n].match + ")");
}