Skip to content

Commit

Permalink
fix(editor): Enable code tag class when sanitizing
Browse files Browse the repository at this point in the history
  • Loading branch information
cstuncsik committed Sep 17, 2024
1 parent 6d5c8ac commit d31540f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/design-system/src/directives/n8n-html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const configuredSanitize = (html: string) =>
...sanitize.defaults.allowedAttributes,
img: ['src', 'srcset', 'alt', 'title', 'width', 'height', 'loading'],
input: ['type', 'id', 'checked'],
code: ['class'],
},
});

Expand Down

0 comments on commit d31540f

Please sign in to comment.