Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2026-02-20 15:37:55 +08:00
commit a3d4aa682f
4 changed files with 6 additions and 6 deletions

View file

@ -2267,7 +2267,7 @@ export const tableMenu = (protyle: IProtyle, nodeElement: Element, cellElement:
} else {
nodeElement.querySelector("table").insertAdjacentHTML("afterbegin", html);
}
nodeElement.setAttribute("caption", Lute.EscapeHTMLStr(`<caption${location === "bottom" ? "caption-side: bottom;" : ""}>${title}</caption>`));
nodeElement.setAttribute("caption", Lute.EscapeHTMLStr(`<caption${location === "bottom" ? "caption-side: bottom;" : ""}>` + Lute.EscapeHTMLStr(title) + `</caption>`));
} else {
if (captionElement) {
captionElement.remove();