mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
This commit is contained in:
parent
a48e78d55f
commit
871baab5a3
1 changed files with 5 additions and 2 deletions
|
@ -102,8 +102,11 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:
|
|||
brElement.remove();
|
||||
}
|
||||
|
||||
if (type !== "NodeHeading" &&
|
||||
(editElement.innerHTML.startsWith("》<wbr>") || editElement.innerHTML.indexOf("\n》<wbr>") > -1)) {
|
||||
if (type !== "NodeHeading" && (
|
||||
editElement.innerHTML.startsWith("》<wbr>") ||
|
||||
editElement.innerHTML.startsWith(Constants.ZWSP + "》<wbr>") ||
|
||||
editElement.innerHTML.indexOf("\n》<wbr>") > -1
|
||||
)) {
|
||||
editElement.innerHTML = editElement.innerHTML.replace("》<wbr>", "><wbr>");
|
||||
}
|
||||
const trimStartText = editElement.innerHTML.trimStart();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue