From c6b72f6c646bea86dd466b76096aa8ff12e9ba18 Mon Sep 17 00:00:00 2001 From: Andrea Barbasso <´andrea.barbasso@4science.com´> Date: Mon, 26 Feb 2024 10:45:27 +0100 Subject: [PATCH] [DURACOM-240] pre-tests changes --- src/app/shared/utils/markdown.pipe.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/shared/utils/markdown.pipe.ts b/src/app/shared/utils/markdown.pipe.ts index 9e7beeb2f5..e543825328 100644 --- a/src/app/shared/utils/markdown.pipe.ts +++ b/src/app/shared/utils/markdown.pipe.ts @@ -73,7 +73,9 @@ export class MarkdownPipe implements PipeTransform { let html: string; if (environment.markdown.mathjax) { - // md.use(await this.mathjax); + // TODO: instead of using md.use with mathjax, use ng-katex rendering from its service + md.use(await this.mathjax); + // TODO: keep this as is const sanitizeHtml = await this.sanitizeHtml; html = sanitizeHtml(md.render(value), { // sanitize-html doesn't let through SVG by default, so we extend its allowlists to cover MathJax SVG