Skip to content

Normalize (Unreleased)[unreleased]-style headings - #13

Merged
riki137 merged 3 commits into
mainfrom
unreleased-formats
Aug 6, 2026
Merged

Normalize (Unreleased)[unreleased]-style headings#13
riki137 merged 3 commits into
mainfrom
unreleased-formats

Conversation

@riki137

@riki137 riki137 commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Recognizes ## (Unreleased)[unreleased]-style headings (and the same shape on versioned headings) and normalizes them to ## [Unreleased] / ## [<version>] on release.
  • ## [unreleased] (bracket-only, any case) was already supported.

Test plan

  • bun test
  • bun run typecheck
  • bun run lint

riki137 added 3 commits August 6, 2026 10:58
Support the reversed markdown-link heading shape some tools/humans
produce for the Unreleased section, in addition to the already
case-insensitive `[unreleased]`.
Move the paren-prefix stripping for (Unreleased)[unreleased]-style
headings into a separate, simpler regex applied before matching
SECTION_RE, instead of inlining it as an optional group.
@sonarqubecloud

sonarqubecloud Bot commented Aug 6, 2026

Copy link
Copy Markdown

@riki137
riki137 merged commit 932b422 into main Aug 6, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant