Skip to content

Commit 9553394

Browse files
committed
fix: 公式中使用 \tag 导致编号跟公式重叠
1 parent 931535a commit 9553394

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/utils/converter.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ export const solveMath = () => {
1111
continue;
1212
}
1313

14-
const width = svg.getAttribute("width");
15-
if (width === null) {
14+
const height = svg.getAttribute("height");
15+
if (height === null) {
1616
break;
1717
}
18-
const height = svg.getAttribute("height");
19-
svg.removeAttribute("width");
18+
// const height = svg.getAttribute("height");
19+
// svg.removeAttribute("width");
2020
svg.removeAttribute("height");
21-
svg.style.width = width;
21+
// svg.style.width = width;
2222
svg.style.height = height;
2323
}
2424
};

0 commit comments

Comments
 (0)