Skip to content

Commit

Permalink
fix missing text on mermaid diagrams
Browse files Browse the repository at this point in the history
  • Loading branch information
thooyork committed Jun 25, 2024
1 parent 35988df commit f8d8233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/src/markdown-converter-common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export abstract class MarkdownConverter {
.then((parsedInput) =>
this.dompurify.sanitize(parsedInput, {
// Allowed tags and attributes inside markdown
ADD_TAGS: ["iframe"],
ADD_TAGS: ["iframe", "foreignObject"], // foreignObject is needed for SVGs that show html tags inside them like mermaid-diagrams
ADD_ATTR: ["allow", "allowfullscreen", "frameborder", "scrolling"],
}),
);
Expand Down

0 comments on commit f8d8233

Please sign in to comment.