Extend new parser mechanism to determine parser based on content type

And add an image parser and a plain text parser
This commit is contained in:
Jeremy Ruston
2012-12-27 17:08:29 +00:00
parent c078edf468
commit d6e531e87c
4 changed files with 100 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
/*\
title: $:/core/modules/parsers/wikiparser/wikiparser.js
type: application/javascript
module-type: global
module-type: newparser
The wiki text parser processes blocks of source text into a parse tree.
@@ -348,7 +348,7 @@ WikiParser.prototype.amendRules = function(type,names) {
processRuleArray(this.inlineRules);
}
exports.WikiParser = WikiParser;
exports["text/vnd.tiddlywiki"] = WikiParser;
})();