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 convert raw <br> tags into an actual line break, both standalone mid-paragraph and inside GFM pipe-table cells (the most common place <br> shows up, since pipe-table syntax has no other way to express a multi-line cell).
Expected behavior: <br> produces a real line break wherever it appears, including inside table cells.
Is your feature request related to a problem? Please describe.
Concretely, today in Warp's Markdown Viewer (verified on this build):
<br> renders as literal text in both positions — standalone mid-paragraph, and inside a GFM pipe-table cell — it is not converted to a line break in either case.
Additional context
Test case:
# `<br>` (standalone and inside a GFM pipe-table cell)
Should render: two lines separated by a real line break where the standalone `<br>` sits, and a table cell with wrapped multi-line content where the `<br>` sits inside a pipe-table cell. Currently: expect `<br>` to render as literal text in both positions — it is not converted to a line break in either the plain-paragraph case or inside GFM table cells.
Standalone, mid-paragraph:
First line of the paragraph.<br>
Second line, after a raw `<br>`.
Inside a GFM pipe-table cell:
| Feature | Notes |
| ------- | ------------------------------- |
| Export | Supports CSV.<br>Also supports JSON. |Code pointers. As far as I can tell:
markdown_parser.rs'sInlineTokenenum has noLineBreakvariant, so<br>isn't recognized anywhere in the.mdrender path — including inside GFM table cells, which route through the sameparse_inline/parse_cell_contentmachinery as regular paragraph text.- There's already reuse precedent for exactly this conversion: the paste-path parser (
html_parser.rs) maps<br>→FormattedTextLine::LineBreakwhen converting pasted HTML. Wiring the same mapping into the.mdparser's inline tokenizer looks like the natural approach rather than inventing a new mechanism. - CommonMark's own hard-break syntax (trailing double-space or backslash before a newline) also looks unhandled in the inline tokenizer — flagging it here since it's adjacent, though it's not the primary ask of this issue.
Related: this splits out one tag from #13652 (bulk raw-HTML-subset request). Sibling issues from the same split: #13721 (<img> sizing), #13725 (anchor links), #13726 (raw HTML tables), #10259 (<details>/<summary> — pre-existing request), #13733 (<kbd>), #13734 (<sub>/<sup>), #13735 (align on <p>/<div>), #13736 (<picture>/<source>)
Operating system (OS)
macOS
How important is this feature to you?
4
Warp Internal (ignore) - linear-label:39cc6478-1249-4ee7-950b-c428edfeecd1
No response
Activity
warp-for-oss commentedon Jul 14, 2026
@fbartho
Here's what I found while triaging this issue:
Thanks — this looks like a real Markdown Viewer feature gap. The provided markdown sample should be enough to reproduce, and the behavior appears parser-level rather than macOS-specific.
Maintainer details
I concluded that request to have Warp's Markdown Viewer render raw
<br>tags as explicit line breaks in paragraphs and GFM table cells; current markdown inline parsing treats them as literal text..Triage summary
This is an actionable Markdown Viewer enhancement request for raw
<br>support as an explicit hard line break in both regular paragraph text and GFM pipe-table cells. The provided markdown sample is sufficient to reproduce the current behavior and routes toarea:editor-notebooks.Evidence
<br>and<br>inside a GFM table cell.crates/markdown_parser/src/markdown_parser.rsparses table cells viaparse_cell_content, which delegates toparse_inline, the same inline parser used for paragraph text.parse_inline_tokenhas no raw-HTML<br>token; aside from the special<u>/</u>handling and HTML entity decoding, unmatched punctuation falls through to literal text.FormattedTextLine::LineBreakexists incrates/markdown_parser/src/lib.rs, but it is a block-level formatted line, while table cells currently storeVec<FormattedTextFragment>and are laid out from flattened text runs incrates/editor/src/content/edit.rs.crates/markdown_parser/src/html_parser.rsalready maps pasted HTML<br>nodes toFormattedTextLine::LineBreak, which supports the reporter's observation that the markdown-file parser path is the missing path.Duplicate check
I checked all open issues in
warpdotdev/warpand recently closed issues. #13652 is a recently closed umbrella raw-HTML request that this issue explicitly split out from, and #13725 / #13726 are sibling requests for different HTML tags, so this does not meet the duplicate threshold.Open questions
None for initial triage. Product/implementation follow-up is whether support should be limited to
<br>/<br/>or include adjacent CommonMark hard-break syntax in the same change, but the requested<br>behavior itself is clear.This is my automated analysis and may be incorrect. A maintainer will verify the details.
Powered by Oz
warp-for-oss commentedon Jul 15, 2026
This issue has been labeled
ready-to-implementand is open for contributions involving code changes. If you'd like to tackle it, feel free to open a pull request against this issue. You can also comment@oz-agenton this issue to have the bot draft an implementation PR automatically.Render trailing <br> line breaks in table cells (warpdotdev#13732)
Preserve <br> in the editor GFM table export (warpdotdev#13732)
Preserve <br> at style-run boundaries in table cells (warpdotdev#13732)
Map <br> source offsets in table cells (warpdotdev#13732)
Preserve <br> in copy-as-HTML table cells (warpdotdev#13732)
Preserve <br> in plain-text table clipboard rows (warpdotdev#13732)
Add <br> style-delimiter regression guards (warpdotdev#13732)
Emit real newlines for <br> in plain-text table copy (warpdotdev#13732)
Preserve per-token break boundaries for edge and consecutive <br> (wa…
docs(specs): make internal-format <br> decode an explicit non-inherit…