[READ-ONLY] a fast, modern browser for the npm registry
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: allow align and style on img tag (#645)

authored by

Garth de Wet and committed by
GitHub
3c45edb8 0df32a3f

+1 -1
+1 -1
server/utils/readme.ts
··· 139 139 140 140 const ALLOWED_ATTR: Record<string, string[]> = { 141 141 a: ['href', 'title', 'target', 'rel'], 142 - img: ['src', 'alt', 'title', 'width', 'height'], 142 + img: ['src', 'alt', 'title', 'width', 'height', 'align'], 143 143 source: ['src', 'srcset', 'type', 'media'], 144 144 th: ['colspan', 'rowspan', 'align'], 145 145 td: ['colspan', 'rowspan', 'align'],