-
Notifications
You must be signed in to change notification settings - Fork 812
add markdown rendering for tables in popout #7299
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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| parts: ContentPart[]; | ||
| }) => { | ||
| if (isMarkdown(content)) { | ||
| return <MarkdownRenderer content={content} />; |
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.
this still runs on every cell, right?
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.
we could make <PopoutColumn> take a renderContent instead of children and track when the popout is open and do {isOpen ? renderContent() : null}
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.
This only runs when the cell is clicked and the popout is opened. Radix's popover only renders the content on open.
But it has to be a component, previously I did not use a custom component and it would call on every cell.
Thanks for the other comments, I agree. And we can also merge this after release for safety.
📝 Summary
This was missed in the earlier PR because it was a branch of another branch.
This doesn't support all flavours of markdown, so some styling is missed.
🔍 Description of Changes
📋 Checklist