Skip to content

Commit abb946c

Browse files
committed
Whitelist a few additional attributes for img elements in mdÏ
1 parent bfda914 commit abb946c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/base/browser/markdownRenderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export function renderMarkdown(markdown: IMarkdownString, options: MarkdownRende
183183
allowedAttributes: {
184184
'a': ['href', 'name', 'target', 'data-href'],
185185
'iframe': ['allowfullscreen', 'frameborder', 'src'],
186-
'img': ['src']
186+
'img': ['src', 'title', 'alt', 'width', 'height']
187187
}
188188
});
189189
signalInnerHTML!();

0 commit comments

Comments
 (0)