mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-24 17:10:29 +00:00
Changed the ordering of dependencies in WikiTextRenderer.toString
This commit is contained in:
parent
95ab295fbb
commit
66bcef51b3
@ -79,6 +79,20 @@ WikiTextRenderer.prototype.toString = function(type) {
|
||||
[HTML.text(node.step.toString())],
|
||||
[HTML.text(node.type.toString())]
|
||||
));
|
||||
if(node.macro) {
|
||||
ret.push(HTML.splitLabel(
|
||||
"macro",
|
||||
[HTML.text("macro")],
|
||||
[HTML.text(node.macro)]
|
||||
));
|
||||
}
|
||||
if(node.params) {
|
||||
ret.push(HTML.splitLabel(
|
||||
"params",
|
||||
[HTML.text("params")],
|
||||
[HTML.raw(utils.htmlEncode(node.params.toString()).replace(/\n/g,"<br>"))]
|
||||
));
|
||||
}
|
||||
if(node.dependencies) {
|
||||
var dependencies = [];
|
||||
for(var d in node.dependencies) {
|
||||
@ -98,20 +112,6 @@ WikiTextRenderer.prototype.toString = function(type) {
|
||||
dependencies
|
||||
));
|
||||
}
|
||||
if(node.macro) {
|
||||
ret.push(HTML.splitLabel(
|
||||
"macro",
|
||||
[HTML.text("macro")],
|
||||
[HTML.text(node.macro)]
|
||||
));
|
||||
}
|
||||
if(node.params) {
|
||||
ret.push(HTML.splitLabel(
|
||||
"params",
|
||||
[HTML.text("params")],
|
||||
[HTML.raw(utils.htmlEncode(node.params.toString()).replace(/\n/g,"<br>"))]
|
||||
));
|
||||
}
|
||||
if(node.content) {
|
||||
ret.push(HTML.splitLabel(
|
||||
"content",
|
||||
|
Loading…
Reference in New Issue
Block a user