-
Notifications
You must be signed in to change notification settings - Fork 757
feat(renderer): inline CSV table rendering #485
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or requestrendererIssues related to the markdown/content rendererIssues related to the markdown/content renderersprint-candidateStrong candidate for next sprintStrong candidate for next sprintuxUser experience / visual polishUser experience / visual polish
Milestone
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestrendererIssues related to the markdown/content rendererIssues related to the markdown/content renderersprint-candidateStrong candidate for next sprintStrong candidate for next sprintuxUser experience / visual polishUser experience / visual polish
Summary
Data analysis tasks frequently produce CSV output — query results, exported data, computed tables. Rendering CSV inline as a styled, scrollable HTML table is far more readable than raw comma-separated text and more useful than a file download.
Proposed behavior
Two triggers:
1.
MEDIA:CSV files —MEDIA:/tmp/results.csvrenders as a table instead of a download link.2. Fenced csv blocks —
```csvfenced blocks render as tables inline.Rendered table features:
<th>)Security
CSV content is parsed with a simple splitter (handling quoted fields), not
innerHTML'd — all cell values pass throughesc(). No XSS surface.Files involved
static/ui.js— CSV parser (~30 lines), table renderer, MEDIA restore blockstatic/style.css—.msg-csv-tablestyles