From c64db928f87b02d0ef4a7402a35d28f969fd0c19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Krassowski?= <5832902+krassowski@users.noreply.github.com> Date: Fri, 27 Aug 2021 23:15:05 +0100 Subject: [PATCH] Use default JupyterLab CSS sanitizer options for Markdown --- notebook/static/base/js/markdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notebook/static/base/js/markdown.js b/notebook/static/base/js/markdown.js index 94b8850140..492ac37554 100644 --- a/notebook/static/base/js/markdown.js +++ b/notebook/static/base/js/markdown.js @@ -106,7 +106,7 @@ define([ html = mathjaxutils.replace_math(html, math); } if(options.sanitize) { - html = $(security.sanitize_html_and_parse(html)); + html = $(security.sanitize_html_and_parse(html, true)); } } callback(err, html);