Skip to content

Commit 0d122f0

Browse files
committed
span 标签空格
1 parent 18dabd8 commit 0d122f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/converter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const solveZhihuMath = () => {
4343
export const solveHtml = () => {
4444
const element = document.getElementById(BOX_ID);
4545
let html = element.innerHTML;
46-
html = html.replace(/<mjx-container( class="inline.+?)<\/mjx-container>/g, "<span $1</span>");
46+
html = html.replace(/<mjx-container (class="inline.+?)<\/mjx-container>/g, "<span $1</span>");
4747
html = html.replace(/\s<span class="inline/g, '&nbsp;<span class="inline');
4848
html = html.replace(/svg><\/span>\s/g, "svg></span>&nbsp;");
4949
html = html.replace(/mjx-container/g, "section");

0 commit comments

Comments
 (0)