1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-12-22 08:28:33 +00:00

Swap over to the new mime type conventions

Discussed in
https://groups.google.com/forum/#!topic/tiddlywikidev/re8xfLqZNCE
This commit is contained in:
Jeremy Ruston
2012-11-18 15:22:13 +00:00
parent 744699fa35
commit 84650b9a54
41 changed files with 49 additions and 49 deletions

View File

@@ -63,13 +63,13 @@ JavaScriptParser.prototype.parse = function(type,code) {
element = "div";
classes.push("javascript-block-comment");
content.push($tw.Tree.Text("/*"));
content.push.apply(content,self.wiki.parseText("text/x-tiddlywiki",text).tree);
content.push.apply(content,self.wiki.parseText("text/vnd.tiddlywiki",text).tree);
content.push($tw.Tree.Text("*/"));
} else {
element = "span";
classes.push("javascript-line-comment");
content.push($tw.Tree.Text("//"));
content.push.apply(content,self.wiki.parseText("text/x-tiddlywiki-run",text).tree);
content.push.apply(content,self.wiki.parseText("text/vnd.tiddlywiki-run",text).tree);
content.push($tw.Tree.Text("\n"));
}
result.push($tw.Tree.Element(element,{"class": classes},content));