mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 08:48:49 +01:00
This commit is contained in:
parent
b601b8044b
commit
359487c09c
1 changed files with 1 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ export const mathRender = (element: Element, cdn = Constants.PROTYLE_CDN, maxWid
|
|||
if (mathElement.tagName === "DIV") {
|
||||
renderElement.firstElementChild.setAttribute("contenteditable", "false");
|
||||
if (renderElement.childElementCount < 2) {
|
||||
renderElement.insertAdjacentHTML("beforeend", `<span style="position: absolute">${Constants.ZWSP}</span>`);
|
||||
renderElement.insertAdjacentHTML("beforeend", `<span contenteditable="false" style="position: absolute">${Constants.ZWSP}</span>`);
|
||||
}
|
||||
// https://github.com/siyuan-note/siyuan/issues/3541
|
||||
const baseElements = renderElement.querySelectorAll(".base");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue