Skip to content

Support rendering Markdown files in inline-vis blocks #3159

Description

@IlyaM

The workflow

An agent finishes a step and wants to show the user a document it just produced or updated in the workspace — a report, a plan, a summary, notes — inline in the chat message, the same way ::inline-vis{file="demo.html"} already does for HTML. Markdown is the format agentic workflows reach for by default for this kind of output (reports, specs, changelogs, generated docs), so this comes up often.

What happens today

inline-vis only accepts .html / .htm files. The extension check lives in plugins/inline-vis/server.ts (HTML_EXTENSIONS), and it rejects anything else with "file" must end with .html or .htm. To show a .md file inline today, an agent has to either convert it to HTML first or fall back to pasting the raw content into the chat message as text, losing the "here's a live file in the workspace" framing and the "open in sidebar" affordance that inline-vis provides for HTML.

What you would expect

::inline-vis{file="notes.md"} (or a similarly-named directive) renders the Markdown file's content as formatted Markdown inline in the message, with the same surrounding chrome inline-vis already has today: the file-path header, the "open in sidebar" button, and the same workspace-relative path / size-limit / traversal validation rules that apply to HTML files now. It does not need to support arbitrary embedded scripts or iframes the way the HTML path does — just Markdown rendering.

Whether this belongs as an added file type on the existing inline-vis directive or as a separate directive is an open question; either way, the underlying gap is the same: there is no inline preview path for Markdown artifacts.

Context and alternatives

  • Current workaround: convert Markdown to HTML before emitting inline-vis, or just paste the Markdown as message text (which renders as Markdown in chat, but doesn't carry the file-preview framing, sizing, or "open in sidebar" action that inline-vis gives HTML).
  • Searched open and closed issues; found no existing request for Markdown support in inline-vis (only unrelated inline-vis issues: HTML-from-thread-storage loading, a layout-jump bug, and full-page preview in desktop browser).

AGENT GENERATED

Activity

  1. added
    ui
    plugins
    inline-vis
    on Sep 5, 2026
  2. bb-slop-cop commented on Sep 5, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Type: Feature
    • Priority: Medium
    • Effort: Medium
    • Labels: ui, plugins, inline-vis

    No bug report or pull request was created because this issue is classified as a Feature.

  3. added a commit that references this issue on Sep 10, 2026
    7ba69eb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    inline-vispluginsui

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions