fixes
This commit is contained in:
parent
f96dc57f87
commit
952b5da236
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
gmi-web(1) "1.0.4-rc.2"
|
||||
gmi-web(1) "1.0.5-rc.2"
|
||||
|
||||
# NAME
|
||||
|
||||
|
|
9
html.js
9
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;
|
||||
}, "");
|
||||
}
|
||||
|
|
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -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": {
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue