fix(docs): expandable json default option value (close #1158)
This commit is contained in:
@@ -475,6 +475,8 @@ metadata.plugin = async function({__plugins, __templates, name, logger}) {
|
|||||||
text = "<code>→ User attached twitter</code>"
|
text = "<code>→ User attached twitter</code>"
|
||||||
if (o.default === ".user.website")
|
if (o.default === ".user.website")
|
||||||
text = "<code>→ User attached website</code>"
|
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>`)
|
cell.push(`<b>default:</b> ${text}<br>`)
|
||||||
}
|
}
|
||||||
if ("values" in o)
|
if ("values" in o)
|
||||||
|
|||||||
Reference in New Issue
Block a user