set markup

This commit is contained in:
Xertis
2024-12-09 19:51:41 +03:00
committed by GitHub
parent ee147ec7bd
commit 4133e6fd0a
+3 -3
View File
@@ -78,19 +78,19 @@ end
local function create_label(id, text, color) local function create_label(id, text, color)
if id then if id then
document.configs:add(string.format( document.configs:add(string.format(
"<label id='%s' color='%s'>%s</label>", "<label markup='md' id='%s' color='%s'>%s</label>",
id, color, text id, color, text
)) ))
else else
document.configs:add(string.format( document.configs:add(string.format(
"<label color='%s'>%s</label>", "<label markup='md' color='%s'>%s</label>",
color, text color, text
)) ))
end end
end end
local function create_config(i, config, name, path) local function create_config(i, config, name, path)
create_label(name, ('[' .. name .. ']'):upper(), "#FFFFFF") create_label(name, ('**[' .. name .. ']**'):upper(), "#FFFFFF")
pack_open[2][i] = {elements = {}, path = path} pack_open[2][i] = {elements = {}, path = path}
for _, a in ipairs(config.checkboxes) do for _, a in ipairs(config.checkboxes) do
create_checkbox(i .. '_' .. a[1], a[1], a[2]) create_checkbox(i .. '_' .. a[1], a[1], a[2])