Skip to content

Commit 3c45edb

Browse files
authored
feat: allow align and style on img tag (#645)
1 parent 0df32a3 commit 3c45edb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/utils/readme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ const ALLOWED_TAGS = [
139139

140140
const ALLOWED_ATTR: Record<string, string[]> = {
141141
a: ['href', 'title', 'target', 'rel'],
142-
img: ['src', 'alt', 'title', 'width', 'height'],
142+
img: ['src', 'alt', 'title', 'width', 'height', 'align'],
143143
source: ['src', 'srcset', 'type', 'media'],
144144
th: ['colspan', 'rowspan', 'align'],
145145
td: ['colspan', 'rowspan', 'align'],

0 commit comments

Comments
 (0)