mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-24 17:10:29 +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;
|
||||
} else {
|
||||
// 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}
|
||||
]}];
|
||||
]}]}];
|
||||
}
|
||||
}
|
||||
if(!this.hasAttribute("hackCurrentTiddler")) {
|
||||
|
Loading…
Reference in New Issue
Block a user