Skip to content

Code blocks on cookbook/playwright and steel-browser skill pages have no copy button #131

Description

@nibzard

Summary

The code renderer shows a copy button only when the fence carries the c flag. Some pages do not set this flag. Their code blocks have no copy button.

Details

  • components/docskit/code-group.tsx:34-46 maps the c flag to copyButton.
  • components/docskit/code.tsx:80 and components/docskit/code.tsx:102 render the copy button only when options.copyButton is true.
  • content/docs/cookbook/playwright.mdx has 10 code fences. None has flags.
  • content/docs/overview/skills/available-skills/steel-browser.mdx has 2 code fences. Neither has flags.
  • Sibling pages set the flag. Examples: content/docs/overview/self-hosting/docker.mdx (18 fences with -wc or -wcn) and content/docs/overview/stealth/captcha-solving.mdx (19 fences with -wcn).

Impact

Users click code text to copy it. With no copy button, the click gives no response. Microsoft Clarity shows dead-click sessions on 17% of cookbook/playwright sessions and 22% of steel-browser skill page sessions (2026-09-15 to 2026-09-22).

Suggested fix

Make the copy button default-on in SingleCode and MultiCode, with a flag to remove it. Alternatively, add the -c flag to each fence on the affected pages.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions