Skip to content

Package summary falls back to raw README markdown (badges/images) when no description is set #2767

@Adebesin-Cell

Description

@Adebesin-Cell

When a package has no description in its package.json, the package card summary falls back to the README's leading content. For READMEs that start with badge/image markdown, this leaks raw markdown like [![npm version][npm-v-src]][npm-v-href] [![npm downloads][npm-d-src]][npm-d-href] into the card.

Repro: https://npmx.dev/org/nuxtjs — the @nuxtjs/opencollective card shows the badge markdown instead of a meaningful summary.

Expected: skip leading image/badge markdown when deriving a summary, or fall back to a neutral placeholder when no prose is found.

Screenshot

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    frontFrontend, Design

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions