From 93afce147797b6ba8eab580066efb687b84137da Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 6 May 2025 12:06:39 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/14704 --- app/src/protyle/toolbar/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts index 5625451f4..fd7054a72 100644 --- a/app/src/protyle/toolbar/index.ts +++ b/app/src/protyle/toolbar/index.ts @@ -488,7 +488,7 @@ export class Toolbar { if (item.textContent) { const inlineElement = document.createElement("span"); inlineElement.setAttribute("data-type", type); - inlineElement.textContent = item.textContent; + inlineElement.textContent = type === "a" ? (item.textContent.trim() || "*") : item.textContent; setFontStyle(inlineElement, textObj); if (type === "text" && !inlineElement.getAttribute("style")) {