Skip to content

Commit e3beb75

Browse files
authored
fix: allow srcset in readme picture sources (#9)
1 parent 71e4343 commit e3beb75

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/utils/readme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const ALLOWED_TAGS = [
2121
const ALLOWED_ATTR: Record<string, string[]> = {
2222
a: ['href', 'title', 'target', 'rel'],
2323
img: ['src', 'alt', 'title', 'width', 'height'],
24-
source: ['src', 'type', 'media'],
24+
source: ['src', 'srcset', 'type', 'media'],
2525
th: ['colspan', 'rowspan', 'align'],
2626
td: ['colspan', 'rowspan', 'align'],
2727
h3: ['id', 'data-level'],

0 commit comments

Comments
 (0)