mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-11 01:34:20 +01:00
This commit is contained in:
parent
d20b009dba
commit
93afce1477
1 changed files with 1 additions and 1 deletions
|
|
@ -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")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue