diff --git a/gmi-web.1 b/gmi-web.1 index ca0a7fd..a70adcc 100644 --- a/gmi-web.1 +++ b/gmi-web.1 @@ -5,7 +5,7 @@ .nh .ad l .\" Begin generated content: -.TH "gmi-web" "1" "2021-02-16" "1.0.3-rc.2" +.TH "gmi-web" "1" "2021-02-16" "1.0.4-rc.2" .P .SH NAME .P diff --git a/gmi-web.1.scd b/gmi-web.1.scd index c83d6d3..a8ee32a 100644 --- a/gmi-web.1.scd +++ b/gmi-web.1.scd @@ -1,4 +1,4 @@ -gmi-web(1) "1.0.4-rc.2" +gmi-web(1) "1.0.5-rc.2" # NAME diff --git a/html.js b/html.js index c9f63ed..6ac0246 100644 --- a/html.js +++ b/html.js @@ -25,8 +25,13 @@ export function toHTML(gemtext, options) { const vars = CSS.rootVariables(CSS.FULL); return Object.keys(vars).reduce((styles, key) => { - if (typeof options[key] !== undefined && options[key] !== vars[key]) - styles += `--${key}:${options[key]};`; + if (typeof options[key] !== undefined && options[key] !== vars[key]) { + let value = options[key]; + if (["a-prefix", "ul-bullet"].includes(key) && value !== "none") { + value = `"${value}"`; + } + styles += `--${key}:${value};`; + } return styles; }, ""); } diff --git a/package-lock.json b/package-lock.json index de945f5..0f5fb2d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "gmi-web-cli", - "version": "1.0.3-rc.2", + "version": "1.0.4-rc.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 071171c..5c914d8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gmi-web-cli", - "version": "1.0.4-rc.2", + "version": "1.0.5-rc.2", "description": "A bridge between HTML and Gemini", "main": "html.js", "type": "module",