Skip to content

Commit

Permalink
Add table, td, tr to allowed list of tags (#2083)
Browse files Browse the repository at this point in the history
Co-authored-by: Steven Silvester <steven.silvester@ieee.org>
  • Loading branch information
yuvipanda and blink1073 authored Dec 18, 2023
1 parent f4e85a5 commit c72ad76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nbconvert/filters/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def clean_html(element):
kwargs["css_sanitizer"] = css_sanitizer
return bleach.clean(
element,
tags=[*bleach.ALLOWED_TAGS, "div", "pre", "code", "span"],
tags=[*bleach.ALLOWED_TAGS, "div", "pre", "code", "span", "table", "tr", "td"],
attributes={
**bleach.ALLOWED_ATTRIBUTES,
"*": ["class", "id"],
Expand Down

0 comments on commit c72ad76

Please sign in to comment.