|
@@ -101,8 +101,8 @@ function renderBlock(block, inline) {
|
|
|
if (block.latex) node.dataset.latex = block.latex;
|
|
|
// param
|
|
|
if (block.param) {
|
|
|
- node.style.width = block.param.width;
|
|
|
- node.style.height = block.param.height;
|
|
|
+ if (block.param.width) node.style.width = block.param.width + "px";
|
|
|
+ if (block.param.height) node.style.height = block.param.height + "px";
|
|
|
}
|
|
|
} else if (block.type === "cloze") {
|
|
|
node = document.createElement("img");
|