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