-
Notifications
You must be signed in to change notification settings - Fork 887
feat: parse resource metadata values as markdown #10521
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
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.
Everything seems to make sense to me. Just had some clarifying questions about how things are set up, and flagged a bug with the memoization
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.
I'm not going to block on this, but I still feel like it might make sense to give memo
a custom comparison function
My worry is that with how subtle the memoization bug was here, anyone using the component in the future might accidentally have the exact same problem (and worse yet, might not realize that they're doing anything wrong)
yeah yeah, I can use |
Closes coder/terraform-provider-coder#115
Parse resource metadata values as a limited subset of markdown, that will reduce the ability to render values which misbehave/break out of boxes/cause weird layout issues
Only enable "click to copy" on simple, unformatted text. This seemed to be a nice compromise between complexity and functionality.
CopyableValue
which looks weird and feels bad, and deciding what value should be copied if it has bold text, etc.