Skip to content

Support <details>/<summary> HTML tags in markdown rendering #10259

Open

Description

@shishirsharma

Feature Request

Support the <details> and <summary> HTML tags in Warp's markdown renderer to allow collapsible sections.

Motivation

These tags are standard HTML5 and widely supported in GitHub-flavored markdown (GFM). They are commonly used in:

  • AI agent output (long code blocks, verbose logs, step-by-step reasoning)
  • README-style content rendered in terminal
  • Structured output that benefits from progressive disclosure

Expected Behavior

The following markdown/HTML should render as a collapsible section:

<details>
<summary>Click to expand</summary>

Content hidden by default, revealed on click.

</details>

Current Behavior

The <details> and <summary> tags are either stripped or rendered as plain text, with no collapsible behavior.

Additional Context

This would be particularly useful in agent mode where responses can be long and users benefit from being able to collapse sections they don't need.

Activity

  1. warp-for-oss commented on May 6, 2026

    @warp-for-oss
    Contributor

    @shishirsharma

    Here's what I found while triaging this issue:

    This appears to be a feature gap rather than an environment-specific bug. The provided snippet is enough to route the request for markdown-renderer support; no additional repro details are needed for initial triage.

    Maintainer details

    I concluded that enhancement request to add interactive <details>/<summary> collapsible sections to Warp-rendered markdown..

    Triage

    This is an enhancement request for GFM-style collapsible sections in Warp-rendered markdown.

    Reproducibility: High. The provided <details>/<summary> snippet is a minimal, deterministic input, and the current parser/rendering model does not appear to support collapsible containers.

    Likely implementation area:

    • crates/markdown_parser/src/lib.rs defines the current FormattedTextLine variants, which cover headings, lists, code blocks, tables, images, etc., but not a collapsible/details container.
    • crates/markdown_parser/src/markdown_parser.rs parses line-based markdown blocks and only treats a narrow set of inline HTML specially, such as HTML entities and <u>/</u> underline markers; other HTML tags are preserved as plain text.
    • crates/markdown_parser/src/html_parser.rs supports a limited imported-HTML subset and flattens unsupported elements to their children, so <details> and <summary> would not retain container/expanded-state semantics there either.
    • crates/editor/src/content/markdown.rs maps formatted text into fixed editor buffer block styles and HTML serialization; a real implementation would likely need a new collapsible block/container representation plus renderer interaction/state handling.

    Duplicate check: I searched open issues repository-wide and recent closed issues. The closest open issues are broader markdown-rendering parity requests such as #9024 and older markdown gaps such as #4711, but I did not find two existing issues that specifically request <details>/<summary> collapsible sections, so this should not be marked duplicate.

    This is my automated analysis and may be incorrect. A maintainer will verify the details.

    Powered by Oz

  2. added
    area:agent
    area:editor-notebooks
    enhancement
    repro:high
    triaged
    on May 6, 2026
  3. added
    ready-to-spec
    on May 6, 2026
  4. warp-for-oss commented on May 6, 2026

    @warp-for-oss
    Contributor

    This issue has been labeled ready-to-spec and is open for contributions in the form of a product or technical spec. If you'd like to draft one, feel free to open a pull request with the spec under specs/. You can also comment @oz-agent on this issue to have the bot draft the spec automatically.

  5. peicodes commented on May 6, 2026

    @peicodes
    Contributor

    This is more hairy than it sounds because we would need to parse these tags. A spec is recommended.

  6. fbartho commented on Jul 14, 2026

    @fbartho
    Contributor

    While splitting up my related bulk request #13652 into per-feature issues (per @kevinyang372's guidance there), I did a better search of GitHub and found this issue.

    **Current behavior** (verified on today's shipped macOS build)
    • markdown nested inside the block (lists, headings) still renders normally
    • everything is always visible: no toggle, no click target, no disclosure indicator
    Screenshot showing the details/summary tags rendering as raw html

    Minimal test snippet:

    <details>
    <summary>Click to expand</summary>
    
    - hidden item one
    - hidden item two
    
    </details>

    I've now subscribed to the spec PR, and I'm motivated to help get the feature shipped, so feel free to tag me in. -- This issue doesn't have the importance configured, but details/summary are a 5 can't live without it for me!

  7. fbartho commented on Aug 25, 2026

    @fbartho
    Contributor

    It looks like the other PRs have gone dormant, or gotten closed. So I plan to pick this back up from the latest version with the final feedback applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:agentarea:editor-notebooksenhancementready-to-specrepro:hightriagedwarp:auto-triage-review

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions