提交 6e43f069 编写于 作者: M Matt Bierner

Fix code highlighting in hovers

Fixes #79589

Add a few more tags to allowed attributes
上级 9be3eb53
......@@ -183,9 +183,11 @@ export function renderMarkdown(markdown: IMarkdownString, options: MarkdownRende
allowedAttributes: {
'a': ['href', 'name', 'target', 'data-href'],
'iframe': ['allowfullscreen', 'frameborder', 'src'],
'img': ['src', 'title', 'alt', 'width', 'height']
'img': ['src', 'title', 'alt', 'width', 'height'],
'div': ['class', 'data-code']
}
});
signalInnerHTML!();
return element;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册