kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Add an HTML parser
Allows one to embed raw HTML in wikitext with `$$$.html`/`$$$`print-window-tiddler
rodzic
0a37f6bf5b
commit
64eadcfc41
|
@ -0,0 +1,25 @@
|
|||
/*\
|
||||
title: $:/core/modules/parsers/htmlparser.js
|
||||
type: application/javascript
|
||||
module-type: parser
|
||||
|
||||
The HTML parser displays text as raw HTML
|
||||
|
||||
\*/
|
||||
(function(){
|
||||
|
||||
/*jslint node: true, browser: true */
|
||||
/*global $tw: false */
|
||||
"use strict";
|
||||
|
||||
var HtmlParser = function(type,text,options) {
|
||||
this.tree = [{
|
||||
type: "raw",
|
||||
html: text
|
||||
}];
|
||||
};
|
||||
|
||||
exports["text/html"] = HtmlParser;
|
||||
|
||||
})();
|
||||
|
|
@ -24,7 +24,6 @@ var TextParser = function(type,text,options) {
|
|||
};
|
||||
|
||||
exports["text/plain"] = TextParser;
|
||||
exports["text/html"] = TextParser;
|
||||
exports["application/vnd.tiddlywiki2"] = TextParser;
|
||||
exports["application/javascript"] = TextParser;
|
||||
exports["application/json"] = TextParser;
|
||||
|
|
Ładowanie…
Reference in New Issue