mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
This commit is contained in:
parent
a5a1948cee
commit
a075c7380c
1 changed files with 2 additions and 1 deletions
|
|
@ -719,7 +719,8 @@ export const linkMenu = (protyle: IProtyle, linkElement: HTMLElement, focusText
|
||||||
});
|
});
|
||||||
inputElement.addEventListener("input", (event: KeyboardEvent) => {
|
inputElement.addEventListener("input", (event: KeyboardEvent) => {
|
||||||
if (!event.isComposing) {
|
if (!event.isComposing) {
|
||||||
linkElement.innerHTML = Lute.EscapeHTMLStr(inputElement.value) || "";
|
// https://github.com/siyuan-note/siyuan/issues/4511
|
||||||
|
linkElement.innerHTML = Lute.EscapeHTMLStr(inputElement.value.replace(/\\]/g, "]").replace(/\\\[/g, "[")) || "";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
inputElement.addEventListener("keydown", (event) => {
|
inputElement.addEventListener("keydown", (event) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue