@saltcorn/markup
Advanced tools
Comparing version 0.3.0 to 0.3.1-beta.0
10
form.js
@@ -112,3 +112,9 @@ const { | ||
name | ||
)}">${opts}</select>`; | ||
)}"${ | ||
hdr.attributes && hdr.attributes.explainers | ||
? ` data-explainers="${encodeURIComponent( | ||
JSON.stringify(hdr.attributes.explainers) | ||
)}"` | ||
: "" | ||
}>${opts}</select>`; | ||
case "textarea": | ||
@@ -305,3 +311,3 @@ return `<textarea class="form-control ${validClass} ${ | ||
if (k[0] !== "_") collapsedSummary += ` ${text(k)}:${text_attr(v)} `; | ||
if (k === "_fts") collapsedSummary += ` ${v} `; | ||
if (k === "_fts") collapsedSummary += ` ${text_attr(v)} `; | ||
}); | ||
@@ -308,0 +314,0 @@ return div( |
@@ -72,3 +72,5 @@ const { | ||
innerSections(sections).map((s) => | ||
s.link | ||
s.subitems | ||
? navSubitems(s) | ||
: s.link | ||
? li( | ||
@@ -82,4 +84,2 @@ { class: ["nav-item", active(currentUrl, s) && "active"] }, | ||
) | ||
: s.subitems | ||
? navSubitems(s) | ||
: "" | ||
@@ -86,0 +86,0 @@ ) |
{ | ||
"name": "@saltcorn/markup", | ||
"version": "0.3.0", | ||
"version": "0.3.1-beta.0", | ||
"description": "Markup for Saltcorn, open-source no-code platform", | ||
@@ -27,3 +27,3 @@ "homepage": "https://saltcorn.com", | ||
}, | ||
"gitHead": "b47061085c17c37bb50dd59fabcc2a96c7cffcf9" | ||
"gitHead": "a84c884b5b28866a39c6be456efb311c02a7361f" | ||
} |
@@ -70,3 +70,3 @@ const xss = require("xss"); | ||
tbody: mkTag("tbody"), | ||
small: mkTag("small"), | ||
small: mkTag("small", true), | ||
pre: mkTag("pre"), | ||
@@ -73,0 +73,0 @@ code: mkTag("code"), |
43998
1489