Skip to content

Commit 505cf51

Browse files
committedOct 29, 2024
1 parent cf56be5 commit 505cf51

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎app/src/protyle/wysiwyg/input.ts

+3
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ export const input = async (protyle: IProtyle, blockElement: HTMLElement, range:
111111
// https://github.com/siyuan-note/siyuan/issues/9015
112112
if (trimStartText === "¥¥<wbr>" || trimStartText === "¥¥<wbr>") {
113113
editElement.innerHTML = "$$<wbr>";
114+
} else if (trimStartText.indexOf("\n¥¥<wbr>") > -1 || trimStartText.indexOf("\n¥¥<wbr>") > -1) {
115+
// https://ld246.com/article/1730020516427
116+
editElement.innerHTML = trimStartText.replace("\n¥¥<wbr>", "\n$$$$<wbr>").replace("\n¥¥<wbr>", "\n$$$$<wbr>");
114117
}
115118
const refElement = hasClosestByAttribute(range.startContainer, "data-type", "block-ref");
116119
if (refElement && refElement.getAttribute("data-subtype") === "d") {

0 commit comments

Comments
 (0)
Please sign in to comment.