Skip to content

Conversation

@Light2Dark
Copy link
Contributor

@Light2Dark Light2Dark commented Nov 18, 2025

📝 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

  • I have read the contributor guidelines.
  • For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on Discord, or the community discussions (Please provide a link if applicable).
  • I have added tests for the changes made.
  • I have run the code and verified that it works as expected.

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.

  • Frontend · Data Table
    • Popout behavior: Treat strings as inline unless content is entirely markup or short; respect wrapping; increase popout width (w-96); use max-w-fit trigger; apply wrapping styles; add copy-to-clipboard control in popout header.
    • Markdown support: Add isMarkdown (via marked) and MarkdownUrlDetector to render markdown with MarkdownRenderer in popouts; keep UrlDetector for non-markdown.
    • Rendering logic: Use allMarkup check; pass wrapped state consistently; minor class adjustments.
    • Tests: Add isMarkdown test suite; extend url-detector tests.
    • Config: Inline streamdown deps in Vitest server config.
  • Smoke tests:
    • Add tables/markdown_example.py and update tables/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.

@Light2Dark Light2Dark added the bash-focus Area to focus on during release bug bash label Nov 18, 2025
@vercel
Copy link

vercel bot commented Nov 18, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
marimo-docs Ready Ready Preview Comment Nov 21, 2025 4:08pm
@Light2Dark Light2Dark marked this pull request as ready for review November 18, 2025 20:12
@Light2Dark Light2Dark requested a review from manzt as a code owner November 18, 2025 20:12
@Light2Dark Light2Dark marked this pull request as draft November 18, 2025 20:12
@Light2Dark Light2Dark marked this pull request as ready for review November 20, 2025 17:38
@Light2Dark Light2Dark requested review from mscolnick and removed request for manzt November 20, 2025 17:39
mscolnick
mscolnick previously approved these changes Nov 20, 2025
Copy link

@cursor cursor bot left a 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),
);
Copy link

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.

Fix in Cursor Fix in Web

@Light2Dark Light2Dark added the enhancement New feature or request label Nov 20, 2025
@Light2Dark Light2Dark merged commit 5773ead into main Nov 21, 2025
41 checks passed
@Light2Dark Light2Dark deleted the sham/fix-table-long-string-popout branch November 21, 2025 16:29
@Light2Dark Light2Dark restored the sham/fix-table-long-string-popout branch November 25, 2025 09:10
mscolnick pushed a commit that referenced this pull request Nov 25, 2025
## 📝 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bash-focus Area to focus on during release bug bash enhancement New feature or request

3 participants