mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -05:00
Notebooks: Fix relative images not rendering on PC for Markdown Cells (#8091)
* Fix relative images on notebook markdown pc * PR feedback around replace ordering
This commit is contained in:
@@ -203,7 +203,7 @@ export class NotebookMarkdownRenderer {
|
|||||||
href = this.resolveUrl(base, href);
|
href = this.resolveUrl(base, href);
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
href = encodeURI(href).replace(/%25/g, '%');
|
href = encodeURI(href).replace(/%5C/g, '\\').replace(/%25/g, '%');
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user