Skip to content

Commit be2e840

Browse files
authored
Allow table specific tags for markdown in hovers (fixes #99983) (#99988) (#100006)
fixes #99983
1 parent 9c12df8 commit be2e840

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vs/base/browser/markdownRenderer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ export function renderMarkdown(markdown: IMarkdownString, options: MarkdownRende
228228
// allowedTags should included everything that markdown renders to.
229229
// Since we have our own sanitize function for marked, it's possible we missed some tag so let insane make sure.
230230
// HTML tags that can result from markdown are from reading https://spec.commonmark.org/0.29/
231-
allowedTags: ['ul', 'li', 'p', 'code', 'blockquote', 'ol', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'em', 'pre', 'table', 'tr', 'td', 'div', 'del', 'a', 'strong', 'br', 'img', 'span'],
231+
// HTML table tags that can result from markdown are from https://github.github.com/gfm/#tables-extension-
232+
allowedTags: ['ul', 'li', 'p', 'code', 'blockquote', 'ol', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'em', 'pre', 'table', 'thead', 'tbody', 'tr', 'th', 'td', 'div', 'del', 'a', 'strong', 'br', 'img', 'span'],
232233
allowedAttributes: {
233234
'a': ['href', 'name', 'target', 'data-href'],
234235
'img': ['src', 'title', 'alt', 'width', 'height'],

0 commit comments

Comments
 (0)