fix(docs): expandable json default option value (close #1158)

This commit is contained in:
lowlighter
2022-07-29 16:26:16 -04:00
parent 545360c0ce
commit bdb64eab9d

View File

@@ -475,6 +475,8 @@ metadata.plugin = async function({__plugins, __templates, name, logger}) {
text = "<code>→ User attached twitter</code>"
if (o.default === ".user.website")
text = "<code>→ User attached website</code>"
if (type === "json")
text = `<details><summary>→ Click to expand</summary><pre language="json"><code>${text}</code></pre></details>`
cell.push(`<b>default:</b> ${text}<br>`)
}
if ("values" in o)