-
Notifications
You must be signed in to change notification settings - Fork 1.1k
feat: enable raw HTML strings in sidenav links #4930
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
I. Love. It. |
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.
Hey @josefaidt, thank you for this! I think some of the tests are failing because you updated directory.js
. I think the tests might need to be updated to handle the new require()
statement you added.
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.
LGTM!
Description of changes:
This PR aims to enable the usage of raw HTML strings inside
directory.js
in order to render inline code blocks inside sidenav link items.It introduces a use of
dangerouslySetInnerHTML
in the DirectoryGroup class component, however it first validates whether the supplied string contains an inline code block.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.