Repository navigation
Description
Pre-submit Checks
- I have searched Warp feature requests and there are no duplicates
- I have searched Warp docs and my feature is not there
Describe the solution you'd like?
Warp's Markdown Viewer should support the common subset of raw inline HTML that real-world repo markdown relies on (this is standard practice under GitHub Flavored Markdown, and is what GitHub, GitLab, and most other markdown renderers already support). Today the viewer renders plain Markdown syntax reasonably well, but silently drops or ignores raw HTML tags, which breaks a lot of READMEs, docs, and notes that use HTML for layout control that Markdown syntax alone can't express.
Prioritized list of tags, most important first:
<img>withwidth/height/align— sizing control for images. This is the one that bit me directly (see repro below).<a href="…">and<a id="…">— links, plus named anchors used as deep-link targets for hand-built tables of contents.- Tables:
<table>/<thead>/<tbody>/<tr>/<th>/<td>— needed for cells that require a line break (<br>) or acolspan/rowspan, which Markdown table syntax cannot express at all. <details>/<summary>— collapsible sections, extremely common in READMEs, changelogs, and bug-report templates (including this repo's own issue templates elsewhere on GitHub).<br>— explicit line breaks, most often needed inside table cells.<kbd>— keyboard-shortcut styling. Feels especially on-brand for a terminal app's own markdown viewer.<sub>/<sup>— subscript/superscript.<p align="center">/<div align="center">— centered "hero" headers, very common at the top of README files.<picture>/<source media="(prefers-color-scheme: …)">— light/dark logo variant swapping, standard pattern for README badges/logos.
I'd be happy to see this land as "the common subset above," even if full arbitrary-HTML rendering (with all its sanitization complexity) is out of scope.
Is your feature request related to a problem? Please describe.
I'm always frustrated when I write locally-generated SVG dashboards into my Markdown notes and Warp's viewer won't let me size them.
Concretely, today in Warp's Markdown Viewer (verified on this build):
Works, but not usefully — renders the image at a small fixed width that ignores the SVG's intrinsic width/height, and does not scale when the pane or document is resized:
Does not render at all (expected: image displayed at 90% of the pane width):
<img src="assets/chart.svg" alt="Pipeline Funnel" width="90%">Since the Markdown-image renderer ignores the SVG's own intrinsic dimensions, the HTML width attribute is the only author-controllable sizing signal available — and Warp currently drops it, so there is no way to control image size at all short of re-encoding the SVG itself.
Two more everyday examples that currently don't render, both very common in repo docs:
<details>
<summary>Click to expand</summary>
Hidden content here, only shown when expanded.
</details>Press <kbd>Cmd</kbd>+<kbd>K</kbd> to open the command palette.Additional context
- Motivating use case: I generate SVG dashboards locally (charts, funnels, etc.) and embed them in Markdown notes for later reference. Without HTML
width/heightsupport, there's no way to size these embedded charts sensibly inside the viewer. - This is a distinct request from "render a full embedded browser/webview" (e.g. Feature Request: Integrated Browser Panel (WebView) in Warp #8548, Built-in browser panel inside Warp #9194) — I'm not asking for arbitrary script execution or a browser engine, just for the Markdown renderer to handle the same safe, static HTML subset that GitHub's own Markdown renderer supports.
- Environment: Warp
0.2026.07.01.09.21.01on macOS27.0.
Operating system (OS)
macOS
How important is this feature to you?
3
Activity
warp-for-oss commentedon Jul 13, 2026
@fbartho
Here's what I found while triaging this issue:
This looks like a Markdown Viewer enhancement rather than a macOS-specific regression. The report includes enough examples and environment detail for initial triage; the remaining work is defining a safe supported HTML subset and rendering behavior.
Maintainer details
I concluded that feature request for Warp's Markdown Viewer to support a safe raw-HTML subset used by common repository Markdown, especially HTML image sizing..
Triage summary
This is an enhancement request for the Markdown Viewer to support a scoped, safe subset of raw HTML commonly used in repository Markdown. The strongest motivating case is HTML
<img>support with sizing attributes (width,height, andalign), because the current Markdown-image path gives the user no author-controlled sizing for the SVG dashboard example.Evidence and current behavior
<img width="90%">,<details>/<summary>, and<kbd>.parse_imageincrates/markdown_parser/src/markdown_parser.rs, which becomesFormattedTextLine::Image/BufferBlockItem::Imageand is rendered bycrates/editor/src/render/element/image.rs.ImageBlockConfigfrom the viewport width and a default height incrates/editor/src/content/edit.rs; it does not receive HTML-derived width/height/align attributes.<u>token, but does not parse general raw HTML tags into renderable Markdown Viewer structures.crates/markdown_parser/src/html_parser.rsis a separate HTML-to-FormattedText parser used for rich HTML-style input and supports only a limited set of text/list/code/header/link styles. It explicitly skips or flattens several top-level elements, and does not model<img>,<details>,<summary>,<kbd>,<picture>, or table attributes such ascolspan/rowspan.Likely implementation area
This likely needs a product/technical scope decision rather than a narrow bug fix: define the supported and sanitized raw-HTML subset, extend the parser/model where needed, and add renderer support for the requested tags/attributes. The main implementation areas are the markdown parser/model (
crates/markdown_parser/src/markdown_parser.rs,crates/markdown_parser/src/lib.rs), any reusable safe HTML parser behavior (crates/markdown_parser/src/html_parser.rs), buffer conversion (crates/editor/src/content/core.rs,crates/editor/src/content/text.rs), layout (crates/editor/src/content/edit.rs,crates/editor/src/render/model/mod.rs), and render elements such as images/tables/details/KBD styling.Duplicate check
I scanned open issues across the repository and found related requests, but not enough likely duplicates to mark this as a duplicate. The closest partial overlap is #10259, which only covers
<details>/<summary>. Broader markdown-rendering requests such as #9024 and #10574 overlap in surface area but do not request the same raw-HTML subset, especially HTML image sizing.This is my automated analysis and may be incorrect. A maintainer will verify the details.
Powered by Oz
fbartho commentedon Jul 13, 2026
Cross-referencing the sibling reports filed alongside this one: #13658 (markdown viewer serves stale embedded local images — root-cause analysis included) and #13657 (rendered SVG/image viewer panel). Spec PR for this issue's top-priority
<img>slice: #13656.fbartho commentedon Jul 13, 2026
Disclaimer: This is my first time contributing to Warp with Oz involved.
Please let me know if you would have preferred a single Spec PR that covered all the tag types, or if I have other defects that I can improve going forwards.
Assuming my
<img>Spec PR gets approved, I would follow-on with Spec PRs for each of the additional tags, and then PRs to implement every tag?What is the next step here?
kevinyang372 commentedon Jul 14, 2026
@fbartho These are a big group of issues some of which are already supported (e.g.
<table>,<br>) and some are larger changes needing product specc-ing (e.g.<summary>,<details>)Please double check what features we are actually missing and open specific issues for each one
fbartho commentedon Jul 14, 2026
Thanks @kevinyang372 — appreciate you taking the time to triage this, that's exactly why I asked for feedback about project norms / ticket size/scope & your recommended process!
I went back and double-checked each tag against the code, and made a test case for each of them so I could prove to myself the exact status and if it was working.
<details>/<summary>I found the existing request Support <details>/<summary> HTML tags in markdown rendering #10259 and subscribed to that instead of filing a duplicate. I am motivated to help fix it, so if that stalls, please do reach out.parse_markdown_with_gfm_tables), and pasted HTML handles<br>— but raw HTML tags inside a.mddocument appear to flow through the markdown parser as literal text.html_parser_tests.rshas atest_unsupported_html_typescase that seems to confirm HTML<table>currently flattens. So I think the confusion was mine to untangle: my report was specifically about raw HTML embedded in markdown files, which overlaps with — but isn't covered by — the pipe-table and paste paths.Per your suggestion, I've split this into focused single-feature issues, each with a minimal test snippet and a screenshot of current rendering: #13721 (
<img>sizing), #13725 (anchor links), #13726 (raw HTML tables), #13732 (<br>), #13733 (<kbd>), #13734 (<sub>/<sup>), #13735 (alignblocks), #13736 (<picture>/<source>).Thanks again!
docs(specs): retarget details/summary spec from warpdotdev#13652 to w…
fix(markdown): strip HTML comments instead of rendering them as text (#…
fix(markdown): strip HTML comments instead of rendering them as text (w…