Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Improve protyle slash (#15648)

Jeffrey Chencd7734ba912e
diff --git a/app/src/protyle/hint/index.ts b/app/src/protyle/hint/index.ts
index 497fadee0c..71dd808253 100644
--- a/app/src/protyle/hint/index.ts
+++ b/app/src/protyle/hint/index.ts
@@ -727,7 +727,7 @@ ${genHintItemHTML(item)}
focusByRange(range);
this.genEmojiHTML(protyle);
return;
- } else if (value.indexOf("style") > -1) {
+ } else if (value.startsWith("style")) {
range.deleteContents();
this.fixImageCursor(range);
nodeElement.setAttribute("style", value.split(Constants.ZWSP)[1] || "");