Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2026-02-20 14:52:27 +08:00
parent e7b04229c5
commit 18bf0d230d
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
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();