Skip to content

Commit

Permalink
🎨 #13667
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Jan 5, 2025
1 parent d7315fd commit 4ed38f2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/src/protyle/toolbar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,10 @@ export class Toolbar {
return true;
}
});
item.textContent = item.getAttribute("data-content");
if (item.querySelector(".katex")) {
// 选中完整的数学公式才进行备注 https://github.com/siyuan-note/siyuan/issues/13667
item.textContent = item.getAttribute("data-content");
}
} else if (type === "inline-math" && types.includes("inline-memo")) {
// 数学公式和备注不能同时存在
types.find((item, index) => {
Expand Down

0 comments on commit 4ed38f2

Please sign in to comment.