From 4ed38f2f2be0b611e1a9ce18eeff59c6e4cd5337 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 5 Jan 2025 17:49:19 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/13667 --- app/src/protyle/toolbar/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts index 49ace8eab..91a0aa940 100644 --- a/app/src/protyle/toolbar/index.ts +++ b/app/src/protyle/toolbar/index.ts @@ -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) => {