-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When the "
character exists in the hyperlink element address, the paste cannot be parsed normally
#11385
Comments
88250
changed the title
粘贴链接时,把 URL 中的保留和不安全字符自动转换为 URL 编码
When the May 15, 2024
"
character exists in the hyperlink element address, the paste cannot be parsed normally
88250
added a commit
to 88250/lute
that referenced
this issue
May 15, 2024
…ess, the paste cannot be parsed normally siyuan-note/siyuan#11385
88250
added a commit
that referenced
this issue
May 15, 2024
… paste cannot be parsed normally #11385
这样的话加 |
嗯,主流已经是 https |
刚刚打包试了一下:
@88250 需要统一一下 建议把以上 4 种方式添加的链接都统一为 |
|
这个懂了。那自动添加的
|
这两个呢:
|
还在看
…---Original---
From: "Jeffrey ***@***.***>
Date: Wed, May 15, 2024 13:00 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [siyuan-note/siyuan] When the `"` character exists in thehyperlink element address, the paste cannot be parsed normally (Issue #11385)
这两个呢:
复制 www.bing.com/search?q=%22你好%22 ,在思源内选中文本 Ctrl+K 或者直接粘贴,会变成 http://www.bing.com/search?q=%22 → 【问题】丢失了链接部分 你 及后面的字符
复制 www.bing.com/search?q="你好" ,在思源内选中文本 Ctrl+K 或者直接粘贴,会变成 http://www.bing.com/search?q= → 【问题】丢失了链接部分 " 及后面的字符
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
添加链接后应该变成 |
这个还不确定要不要强制编码,能不编码最好。
…---Original---
From: "Jeffrey ***@***.***>
Date: Wed, May 15, 2024 13:04 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [siyuan-note/siyuan] When the `"` character exists in thehyperlink element address, the paste cannot be parsed normally (Issue #11385)
www.bing.com/search?q=%22你好%22 和 www.bing.com/search?q="你好"
添加链接后应该变成 http://www.bing.com/search?q=%22%E4%BD%A0%E5%A5%BD%22
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
这两个已经是强制编码了的:
|
嗯,等下午再看看
…---Original---
From: "Jeffrey ***@***.***>
Date: Wed, May 15, 2024 13:12 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [siyuan-note/siyuan] When the `"` character exists in thehyperlink element address, the paste cannot be parsed normally (Issue #11385)
这两个已经是强制编码了的:
复制 [在必应搜索 "你好"](www.bing.com/search?q="你好") ,在思源内选中文本 Ctrl+K 或者直接粘贴,会添加链接 www.bing.com/search?q=%22%E4%BD%A0%E5%A5%BD%22
复制 [在必应搜索 "你好"](www.bing.com/search?q=%22你好%22) ,在思源内选中文本 Ctrl+K 或者直接粘贴,会添加链接 www.bing.com/search?q=%22%E4%BD%A0%E5%A5%BD%22
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
88250
added a commit
to 88250/lute
that referenced
this issue
May 15, 2024
88250
added a commit
that referenced
this issue
May 15, 2024
… paste cannot be parsed normally #11385
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
粘贴链接时,把 URL 中的保留和不安全字符自动转换为 URL 编码
In what scenarios do you need this feature?
[在必应搜索 "你好"](www.bing.com/search?q="你好")
粘贴到思源内,会丢失链接部分"
及后面的字符,变成[在必应搜索 "你好"](www.bing.com/search?q=)
[在必应搜索 "你好"](www.bing.com/search?q=%22你好%22)
粘贴到思源内则是正常的,点击超链接也能正常打开网页www.bing.com/search?q=%22你好%22
,在思源内选中文本Ctrl+K
或者直接粘贴,会丢失链接部分你
及后面的字符,变成http://www.bing.com/search?q=%22
Describe the optimal solution
建议在粘贴链接时,把 URL 中的保留和不安全字符(
"
和非英文之类的)自动转换为 URL 编码[在必应搜索 "你好"](www.bing.com/search?q="你好")
粘贴后变为[在必应搜索 "你好"](www.bing.com/search?q=%22%E4%BD%A0%E5%A5%BD%22)
(符号和中文都转换)Describe the candidate solution
另外,这个
http://
有必要自动加上吗?明明去掉之后点击也可以打开网页Other information
No response
The text was updated successfully, but these errors were encountered: