提交 f2653c04 编写于 作者: S Sankt Petersbug 提交者: Matt Bierner

Fix Markdown Preview incorrectly encodes a link (#61530)

For known external scheme, the customized normalizeLink method use vscode.Uri to parse and create
the string representation of the link before caling the original normalizeLink method.
The toString method of vscode.Uri encodes the result by default, and this is unecessary since encoding
is handled by the original normalizeLink method.

Calls toString method with skipEncoding option.

Resolves: #60525
上级 232cef56
......@@ -181,7 +181,8 @@ export class MarkdownEngine {
try {
const externalSchemeUri = getUriForLinkWithKnownExternalScheme(link);
if (externalSchemeUri) {
return normalizeLink(externalSchemeUri.toString());
// set true to skip encoding
return normalizeLink(externalSchemeUri.toString(true));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册