mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-27 06:44:57 +00:00
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:
@@ -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;
|
||||
|
||||
})();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user