mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-01 10:20:16 +01:00
🚨
This commit is contained in:
parent
882883a9cc
commit
4ca684ca8a
4 changed files with 6 additions and 6 deletions
|
|
@ -191,7 +191,7 @@ export const pasteText = (protyle: IProtyle, textPlain: string, nodeElement: Ele
|
|||
} else if (isFileAnnotation(textPlain)) {
|
||||
textPlain = textPlain.replace(/".+">>$/, `"${range.toString()}">>`);
|
||||
} else {
|
||||
const linkDest = protyle.lute.GetLinkDest(textPlain)
|
||||
const linkDest = protyle.lute.GetLinkDest(textPlain);
|
||||
if (linkDest) {
|
||||
textPlain = `[${range.toString()}](${linkDest})`;
|
||||
}
|
||||
|
|
@ -448,7 +448,7 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
|
|||
return;
|
||||
} else {
|
||||
// https://github.com/siyuan-note/siyuan/issues/8475
|
||||
const linkDest = protyle.lute.GetLinkDest(textPlain)
|
||||
const linkDest = protyle.lute.GetLinkDest(textPlain);
|
||||
if (linkDest) {
|
||||
protyle.toolbar.setInlineMark(protyle, "a", "range", {
|
||||
type: "a",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue