This commit is contained in:
Talon Poole 2021-02-16 01:34:03 +00:00
parent f96dc57f87
commit 952b5da236
5 changed files with 11 additions and 6 deletions

View file

@ -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

View file

@ -1,4 +1,4 @@
gmi-web(1) "1.0.4-rc.2"
gmi-web(1) "1.0.5-rc.2"
# NAME

View file

@ -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;
}, "");
}

2
package-lock.json generated
View file

@ -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": {

View file

@ -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",