Skip to content

Render HTML rich content and make external-content URLs clickable#4072

Merged
bbatsov merged 1 commit into
masterfrom
rich-content-round3
Jul 3, 2026
Merged

Render HTML rich content and make external-content URLs clickable#4072
bbatsov merged 1 commit into
masterfrom
rich-content-round3

Conversation

@bbatsov

@bbatsov bbatsov commented Jul 3, 2026

Copy link
Copy Markdown
Member

Third round of the rich-content work:

  • Fetched text/html renders as formatted text via shr (REPL, popup, and the inline fallback path). Slurping an .html file or an http(s) page now produces something readable instead of a wall of markup.
  • The URL of an external-content result is now itself a button that opens in the browser, next to [show content].
  • The interactive-eval content-type flag is only sent for the default handler; custom callbacks (eval-to-comment, pprint flows, third-party) never render rich content, so they shouldn't request it. This also clears the way for the middleware to stop double-sending value alongside content-typed responses (coming in cider-nrepl alpha2).

Fetched text/html now renders as formatted text via shr, in both the
REPL and the rich-content popup (and in the inline fallback path).  The
URL of an external-content result is a link opening in the browser,
next to its [show content] button.

Also gate the interactive-eval content-type flag on the default
handler: custom callbacks (eval-to-comment, pprint flows) never render
rich content, so they shouldn't request it - which also clears the way
for the server to stop sending value alongside content-typed
responses.
@bbatsov bbatsov merged commit cbcbb13 into master Jul 3, 2026
12 checks passed
@bbatsov bbatsov deleted the rich-content-round3 branch July 3, 2026 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant