mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-25 09:30:28 +00:00
Make the default list widget template include a div or span
Otherwise writing this makes a list on one line: ``` {{{ [tag[done]] }}} ```
This commit is contained in:
parent
c96cb6e956
commit
409152afb8
@ -99,9 +99,9 @@ ListWidget.prototype.makeItemTemplate = function(title) {
|
|||||||
templateTree = this.parseTreeNode.children;
|
templateTree = this.parseTreeNode.children;
|
||||||
} else {
|
} else {
|
||||||
// Default template is a link to the title
|
// Default template is a link to the title
|
||||||
templateTree = [{type: "link", attributes: {to: {type: "string", value: title}}, children: [
|
templateTree = [{type: "element", tag: this.parseTreeNode.isBlock ? "div" : "span", children: [{type: "link", attributes: {to: {type: "string", value: title}}, children: [
|
||||||
{type: "text", text: title}
|
{type: "text", text: title}
|
||||||
]}];
|
]}]}];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(!this.hasAttribute("hackCurrentTiddler")) {
|
if(!this.hasAttribute("hackCurrentTiddler")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user