fix extension readme not rendering img width height (#117961)

This commit is contained in:
Sang 2021-03-03 03:47:56 +11:00 committed by GitHub
parent 2b50ba174f
commit 20096095f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,7 +78,8 @@ function removeEmbeddedSVGs(documentContent: string): string {
allowedAttributes: {
'*': [
'align',
]
],
img: ['src', 'alt', 'title', 'aria-label', 'width', 'height'],
},
filter(token: { tag: string, attrs: { readonly [key: string]: string } }): boolean {
return token.tag !== 'svg';