Skip to content

x/pkgsite: support markdown alerts in readme #69780

Open
@fxamacker

Description

@fxamacker

What is the URL of the page with the issue?

https://pkg.go.dev/github.com/docker/buildx#section-readme

What is your user agent?

All user agents

Note

  • This issue affects all web browsers.
  • GitHub introduced markdown alerts in 2023 as an extension to GfM (2019).

Screenshot

Got unformatted alerts (e.g. [!WARNING]) at https://pkg.go.dev/github.com/docker/buildx#section-readme:

image

Got formatted alerts on GitHub at https://github.com/docker/buildx:

image

What did you do?

View projects using markdown alerts like github.com/docker/buildx on pkg.go.dev.

Or use any of these GitHub markdown alerts in a README.md.

> [!NOTE]
> Useful information that users should know, even when skimming content.

> [!TIP]
> Helpful advice for doing things better or more easily.

> [!IMPORTANT]
> Key information users need to know to achieve their goal.

> [!WARNING]
> Urgent info that needs immediate user attention to avoid problems.

> [!CAUTION]
> Advises about risks or negative outcomes of certain actions.

What did you see happen?

Markdown alerts are not formatted as alerts at pkg.go.dev.

For example, [!WARNING], [!IMPORTANT], and [!NOTE] alerts are not formatted as alerts.

What did you expect to see?

Expected to see markdown alerts formatted as alerts. GitHub documentation lists these alerts:

Note

Useful information that users should know, even when skimming content.

Tip

Helpful advice for doing things better or more easily.

Important

Key information users need to know to achieve their goal.

Warning

Urgent info that needs immediate user attention to avoid problems.

Caution

Advises about risks or negative outcomes of certain actions.

EDIT: Added note that GitHub introduced markdown alerts in 2023 as an extension to GfM (2019). Also clarified and reordered screenshots.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureRequestIssues asking for a new feature that does not need a proposal.NeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.pkgsite

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions