-
Notifications
You must be signed in to change notification settings - Fork 812
fix popout columns logic for long strings #7201
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.
|
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 PR is being reviewed by Cursor Bugbot
Details
You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
|
|
||
| return commonMarkdownIndicators.some((type) => | ||
| tokens.some((token) => token.type === type), | ||
| ); |
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.
Bug: isMarkdown fails to detect inline markdown
The isMarkdown function checks only top-level tokens from marked.lexer, failing to detect inline markdown elements like strong, em, and link which are typically nested within paragraph tokens. This causes long strings with only inline markdown to render as raw text instead of rendered markdown in popout columns.
de7ea45 to
e793f9b
Compare
## 📝 Summary <!-- Provide a concise summary of what this pull request is addressing. If this PR fixes any issues, list them here by number (e.g., Fixes #123). --> This was missed in the [earlier PR ](#7201) because it was a branch of another branch. This doesn't support all flavours of markdown, so some styling is missed. <img width="395" height="381" alt="image" src="https://github.com/user-attachments/assets/f54d1eb7-bcca-47d3-9356-fad6317909e3" /> <img width="421" height="402" alt="image" src="https://github.com/user-attachments/assets/fb9c26d4-d51f-4595-88e3-998701c86993" /> ## 🔍 Description of Changes <!-- Detail the specific changes made in this pull request. Explain the problem addressed and how it was resolved. If applicable, provide before and after comparisons, screenshots, or any relevant details to help reviewers understand the changes easily. --> ## 📋 Checklist - [x] I have read the [contributor guidelines](https://github.com/marimo-team/marimo/blob/main/CONTRIBUTING.md). - [ ] For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on [Discord](https://marimo.io/discord?ref=pr), or the community [discussions](https://github.com/marimo-team/marimo/discussions) (Please provide a link if applicable). - [x] I have added tests for the changes made. - [x] I have run the code and verified that it works as expected.
📝 Summary
Issue where long strings didn't show up as popout columns, because they had markup. Also increases the width of popout columns and ensures they are truncated when inline for a clean table look.
before:
Screen.Recording.2025-11-18.at.10.39.02.PM.mov
after:
Screen.Recording.2025-11-18.at.10.38.03.PM.mov
🔍 Description of Changes
📋 Checklist
Note
Improves table cell rendering by detecting markdown and using a markdown renderer in popouts, refines long-string popout logic, adds copy-to-clipboard and layout tweaks, and updates tests and smoke demos.
w-96); usemax-w-fittrigger; apply wrapping styles; add copy-to-clipboard control in popout header.isMarkdown(viamarked) andMarkdownUrlDetectorto render markdown withMarkdownRendererin popouts; keepUrlDetectorfor non-markdown.allMarkupcheck; pass wrapped state consistently; minor class adjustments.isMarkdowntest suite; extendurl-detectortests.streamdowndeps in Vitest server config.tables/markdown_example.pyand updatetables/rich_elements.py(new long text with URLs, formatting).Written by Cursor Bugbot for commit de7ea45. This will update automatically on new commits. Configure here.