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