Don't insert link element into the markdown cell preview body

Fixes #123012
This commit is contained in:
Matt Bierner
2021-05-05 14:35:18 -07:00
parent 0b1926db8a
commit 13d81db250

View File

@@ -32,7 +32,7 @@ export async function activate(ctx: {
// Insert styles into markdown preview shadow dom so that they are applied
for (const markdownStyleNode of document.getElementsByClassName('markdown-style')) {
context.element.appendChild(markdownStyleNode.cloneNode(true));
context.element.insertAdjacentElement('beforebegin', markdownStyleNode.cloneNode(true) as Element);
}
}
};