Skip to content

Commit 88e5b89

Browse files
authored
fix(frontend): allow align attribute for <div> elements in readme (#227)
1 parent 38960e2 commit 88e5b89

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
@@ -151,7 +151,7 @@ const ALLOWED_ATTR: Record<string, string[]> = {
151151
code: ['class'],
152152
pre: ['class', 'style'],
153153
span: ['class', 'style'],
154-
div: ['class', 'style'],
154+
div: ['class', 'style', 'align'],
155155
}
156156

157157
// GitHub-style callout types

0 commit comments

Comments
 (0)