Fix text parser to use codeblocks

This means that JavaScript and JSON tiddlers will be properly
highlighted if the highlight plugin is loaded.
print-window-tiddler
Jermolene 2014-04-24 19:41:07 +01:00
rodzic d727046948
commit 552657fc58
1 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -15,11 +15,11 @@ The plain text parser processes blocks of source text into a degenerate parse tr
var TextParser = function(type,text,options) {
this.tree = [{
type: "element",
tag: "pre",
children: [{
type: "text",
text: text
}]
tag: "$codeblock",
attributes: {
code: {type: "string", value: text},
language: {type: "string", value: type}
}
}];
};