From 53e24a9ee8042bbc7f0214e53568617f2299c9d4 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 27 Sep 2022 00:09:54 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/5975 --- app/src/protyle/toolbar/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts index 8b64c60cb..7b260012e 100644 --- a/app/src/protyle/toolbar/index.ts +++ b/app/src/protyle/toolbar/index.ts @@ -992,7 +992,8 @@ export class Toolbar { inlineLastNode = item; } } else { - item.setAttribute("data-inline-memo-content", Lute.EscapeHTMLStr(textElement.value)); + // 行级备注自动移除换行 https://ld246.com/article/1664205917326 + item.setAttribute("data-inline-memo-content", Lute.EscapeHTMLStr(textElement.value.replace(/\n/g, " "))); } }); } else if (types.includes("inline-math")) {