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:
@@ -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 + ")");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user