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")) {