Skip to content

website: headings render without id attributes, so intra-guide #anchors silently break #105

Description

@wmadden-electric

The guides cross-link section anchors (building-an-app.md#secrets, #binding-a-param-at-provision, #databases, #production-behavior, …) and the link rewriter preserves the fragments — but website/scripts/render.ts uses markdown-it with no heading-anchor plugin, so rendered headings carry no id attributes. Every such link lands at the top of the target page instead of the section.

Fix shape: add a heading-slug plugin (e.g. markdown-it-anchor with a GitHub-style slugifier so the fragments used in the guides keep working) and a content test asserting that every intra-guide fragment in a rewritten link matches a generated heading id.

Found during the env-param docs pass (PR #94); affects all guides equally and predates that PR.

🤖 Generated with Claude Code

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