-
Notifications
You must be signed in to change notification settings - Fork 11.1k
chore: No more clientside markdown when importing Checkbox #25278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| )} | ||
| dangerouslySetInnerHTML={{ | ||
| __html: markdownToSafeHTML(descriptionAsSafeHtml), | ||
| __html: descriptionAsSafeHtml, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we sure we have already converted markdown to html at this point
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this prop is only used in one place, which has already converted markdown to html - form builder.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 2 files
hariombalhara
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hariombalhara approved this PR from Slack with Graphite
E2E results are ready! |
Summary by cubic
Checkbox no longer converts markdown on the client; it renders pre-sanitized HTML (descriptionAsSafeHtml) directly. This reduces bundle size and improves performance.
Written for commit 7d504ab. Summary will update automatically on new commits.