Skip to content

Commit ee40617

Browse files
authored
Merge pull request #543 from velopert/fix/markdown-render
fix: allow attributes for img tag #536
2 parents 9442a03 + e62f560 commit ee40617

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/common/MarkdownRender.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ function filter(html: string) {
170170
],
171171
allowedAttributes: {
172172
a: ['href', 'name', 'target'],
173-
img: ['src'],
173+
img: ['src', 'alt', 'width', 'height'],
174174
iframe: ['src', 'allow', 'allowfullscreen', 'scrolling', 'class'],
175175
'*': ['class', 'id', 'aria-hidden'],
176176
span: ['style'],

0 commit comments

Comments
 (0)