[DURACOM-240] pre-tests changes

This commit is contained in:
Andrea Barbasso
2024-02-26 10:45:27 +01:00
committed by Giuseppe Digilio
parent 81b0d76f1b
commit c6b72f6c64

View File

@@ -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