mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
[DURACOM-240] pre-tests changes
This commit is contained in:

committed by
Giuseppe Digilio

parent
81b0d76f1b
commit
c6b72f6c64
@@ -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
|
||||
|
Reference in New Issue
Block a user