mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -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") {
|
||||
|
||||
Reference in New Issue
Block a user