mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-12 12:20:55 -08:00
Swap over to the new mime type conventions
Discussed in https://groups.google.com/forum/#!topic/tiddlywikidev/re8xfLqZNCE
This commit is contained in:
parent
744699fa35
commit
84650b9a54
41 changed files with 49 additions and 49 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue