From c72ad76251d50c9cf3139e23922e9ef3441e9860 Mon Sep 17 00:00:00 2001 From: Yuvi Panda Date: Mon, 18 Dec 2023 04:43:50 -0800 Subject: [PATCH] Add table, td, tr to allowed list of tags (#2083) Co-authored-by: Steven Silvester --- nbconvert/filters/strings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nbconvert/filters/strings.py b/nbconvert/filters/strings.py index 9284521ef..81a0453ad 100644 --- a/nbconvert/filters/strings.py +++ b/nbconvert/filters/strings.py @@ -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"],