Skip to content

Commit 029b782

Browse files
authored
Merge pull request velopert#177 from velopert/fix/allow-check-boxes
Resolve velopert#169
2 parents b1a1db1 + 86d4a83 commit 029b782

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/common/MarkdownRender.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ function filter(html: string) {
162162
'span',
163163
'img',
164164
'del',
165+
'input',
165166

166167
...katexWhitelist.tags,
167168
],
@@ -171,6 +172,7 @@ function filter(html: string) {
171172
iframe: ['src', 'allow', 'allowfullscreen', 'scrolling', 'class'],
172173
'*': ['class', 'id', 'aria-hidden'],
173174
span: ['style'],
175+
input: ['type'],
174176
...katexWhitelist.attributes,
175177
},
176178
allowedStyles: {

0 commit comments

Comments
 (0)