Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2023-12-28 23:46:29 +08:00
commit 0c885cf9ff
4 changed files with 10 additions and 6 deletions

View file

@ -1852,7 +1852,7 @@ export class WYSIWYG {
if (aElement && !event.altKey) {
event.stopPropagation();
event.preventDefault();
const linkAddress = Lute.UnEscapeHTMLStr(aLink);
let linkAddress = Lute.UnEscapeHTMLStr(aLink);
/// #if MOBILE
openByMobile(linkAddress);
/// #else
@ -1882,6 +1882,10 @@ export class WYSIWYG {
}
} else if (linkAddress) {
/// #if !BROWSER
if (0 > linkAddress.indexOf("://")) {
// Support click to open hyperlinks like `www.foo.com` https://github.com/siyuan-note/siyuan/issues/9986
linkAddress = `https://${linkAddress}`;
}
shell.openExternal(linkAddress).catch((e) => {
showMessage(e);
});

File diff suppressed because one or more lines are too long

View file

@ -9,7 +9,7 @@ require (
github.com/88250/clipboard v0.1.5
github.com/88250/epub v0.0.0-20230830085737-c19055cd1f48
github.com/88250/gulu v1.2.3-0.20231209020950-b7b6994e395c
github.com/88250/lute v1.7.6-0.20231228122252-ad95487f9785
github.com/88250/lute v1.7.6-0.20231228144126-d71866270181
github.com/88250/pdfcpu v0.3.14-0.20230401044135-c7369a99720c
github.com/88250/vitess-sqlparser v0.0.0-20210205111146-56a2ded2aba1
github.com/ClarkThan/ahocorasick v0.0.0-20231011042242-30d1ef1347f4

View file

@ -10,8 +10,8 @@ github.com/88250/go-sqlite3 v1.14.13-0.20231214121541-e7f54c482950 h1:Pa5hMiBceT
github.com/88250/go-sqlite3 v1.14.13-0.20231214121541-e7f54c482950/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU=
github.com/88250/gulu v1.2.3-0.20231209020950-b7b6994e395c h1:Fas3hxqP33xA9KKDV50jUmppiiOukk5bdV00Hk5VSSk=
github.com/88250/gulu v1.2.3-0.20231209020950-b7b6994e395c/go.mod h1:pTWnjt+6qUqNnP9xltswsJxgCBVu3C7eW09u48LWX0k=
github.com/88250/lute v1.7.6-0.20231228122252-ad95487f9785 h1:04TctbhP3NZmRmL36vY6XWElHUxG/IrfJTUtf/fVjEI=
github.com/88250/lute v1.7.6-0.20231228122252-ad95487f9785/go.mod h1:+wUqx/1kdFDbWtxn9LYJlaCOAeol2pjSO6w+WJTVQsg=
github.com/88250/lute v1.7.6-0.20231228144126-d71866270181 h1:ySAwXLhYdkZFHEP+gwWBTfyVdbBCRdURHLyh3lDKjKM=
github.com/88250/lute v1.7.6-0.20231228144126-d71866270181/go.mod h1:+wUqx/1kdFDbWtxn9LYJlaCOAeol2pjSO6w+WJTVQsg=
github.com/88250/pdfcpu v0.3.14-0.20230401044135-c7369a99720c h1:Dl/8S9iLyPMTElnWIBxmjaLiWrkI5P4a21ivwAn5pU0=
github.com/88250/pdfcpu v0.3.14-0.20230401044135-c7369a99720c/go.mod h1:S5YT38L/GCjVjmB4PB84PymA1qfopjEhfhTNQilLpv4=
github.com/88250/vitess-sqlparser v0.0.0-20210205111146-56a2ded2aba1 h1:48T899JQDwyyRu9yXHePYlPdHtpJfrJEUGBMH3SMBWY=