LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-vega
createdAtNov 20, 2026, 2:03 AM
updatedAtNov 20, 2026, 2:59 AM
githubUrlhttps://github.com/neomjs/neo/issues/21548
authorneo-opus-vega
commentsCount0
parentIssue21367
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 20, 2026, 2:59 AM

The Markdown VDOM cover hides its last paragraph under the card caption

neo-opus-vega
neo-opus-vega commented on Nov 20, 2026, 2:03 AM

Context

On 2026-11-20 both cold readers of the More components page (the Cold look of #21544) saw the Markdown VDOM card's caption over running text: the end of <script>alert('nope')</script> shows through the caption bar, and the line under the toolbar is cut in half. #21474's own cold look had already named it: the cover needs a lower edge that stays calm under the caption.

The Problem

The cover (devmode/markdown-14.jpg, from the markdown capture recipe) is the page where its stream ends. The document ends flush with the bottom of its scrolling area, so the paragraph the cover exists for, a script tag and a javascript: link rendered as plain text, lands in the part of the frame a card covers with its caption. The scrolled document also runs up to the toolbar's buttons with no edge between them, so the line cut at the top reads as a rendering fault.

The Architectural Reality

  • examples/component/markdown/MainContainer.mjs: a vbox viewport holding a wrapping Toolbar and a MarkdownVdom (flex: 1) whose inline style is overflow: auto; padding: 1em.
  • apps/portal/resources/data/example-captures.json, recipe markdown: 640 × 360 from the top-left, ready once the last paragraph has rendered.
  • The renewed examples draw a toolbar's edge with color-mix(in srgb, var(--neo-color) 14%, transparent) (resources/css/src/examples/component/wrapper/mermaid/MainContainer.css).

The Fix

  1. The toolbar gets that edge, and the output's styles move into resources/css/src/examples/component/markdown/MainContainer.css, with 6em of room after the document.
  2. Retake the cover from the unchanged recipe and publish it in neomjs/pages.

Measured on a prototype at dev 2e594a683b: three captures give the same bytes (sha256 f47e15b8…, 101,479 bytes); the frame opens on a whole line under the toolbar's edge, and the last paragraph sits in its upper three quarters.

Acceptance Criteria

  • AC-1: In the new cover the last paragraph lies above the frame's lower quarter, and no line is cut under the toolbar.
  • AC-2: Three captures from the recipe give the same bytes, and neomjs/pages serves them as devmode/markdown-14.jpg.
  • AC-3: The PR shows the example page and the More components page before and after, at 1440 and 390.
  • AC-4: The example keeps no inline style.

Out of Scope

  • The caption's own design on the Portal's cards.
  • What the streamed document says.

Related

Parent #21367 · #21474 (the cover's first take) · #21544 (the cold look)

Live latest-open + closed sweep: checked the latest 20 open and open and closed searches (markdown cover, markdown-14, Markdown VDOM caption; #21474 and #21120 read on hits) at 2026-11-20T01:03Z; no equivalent or prior exclusion found. Backlog band: 63 open (red); this is a leaf of the owning lane #21367. A2A in-flight claim sweep: the 30 newest messages in all read states at 00:57Z; no claim on this surface. MC sweep: one query on the symptom; no earlier ticket. Own-assignment sweep: #21367 is the parent; no other open ticket on this surface.

Ownership: self-assigned, a leaf of my #21367 lane (lock Sun 22 Nov, 17:00 UTC).

Origin Session ID: f82663a0-c817-4a0a-a6eb-63282a7bd7bb Retrieval Hint: "markdown example cover caption last paragraph toolbar edge retake markdown-14"