fix extension readme not rendering img width height (#117961)
This commit is contained in:
parent
2b50ba174f
commit
20096095f1
1 changed files with 2 additions and 1 deletions
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue