Vanessa 2026-02-20 12:13:39 +08:00
parent 3b5bd46b4e
commit fb8d9dfde9

View file

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