This commit is contained in:
Vanessa 2024-10-29 13:16:45 +08:00
parent cf56be53b3
commit 505cf51efe

View file

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