Skip to content

chore(md): remove dead heading-extract plugin - #236

Merged
Brooooooklyn merged 1 commit into
mainfrom
07-01-chore-md-remove-dead-heading-extract-plugin
Jul 1, 2026
Merged

Brooooooklyn merged 1 commit into
mainfrom
07-01-chore-md-remove-dead-heading-extract-plugin

Conversation

@shulaoda

Copy link
Copy Markdown
Member

What

This removes packages/md/src/plugins/heading-extract.ts, the file that exported the headingExtractPlugin function and the HeadingData type.

Why

The module is dead code. headingExtractPlugin is never imported or registered anywhere in the monorepo, and HeadingData has no references. Heading and TOC extraction is already provided by tocPlugin, which is registered in compile.ts through markdown.use(tocPlugin), and by the local extractHeadings helpers in compile.ts and metadata.ts. The deleted file is a leftover from the original VitePress port that those implementations superseded.

Safety

There is no behavior change. The file was not registered in compile.ts, was not re-exported from the package entry index.ts, and was not part of the package exports surface, so nothing observable changes.

Verification

There are zero references to headingExtractPlugin and HeadingData across packages, docs, and playground, excluding dist. The void md package typechecks cleanly with tsgo. The net change removes one file and 39 lines.

This removes packages/md/src/plugins/heading-extract.ts, the file that exported the headingExtractPlugin function and the HeadingData type.

The module is dead code. headingExtractPlugin is never imported or registered anywhere in the monorepo, and HeadingData has no references. Heading and TOC extraction is already provided by tocPlugin, which is registered in compile.ts through markdown.use(tocPlugin), and by the local extractHeadings helpers in compile.ts and metadata.ts. The deleted file is a leftover from the original VitePress port that those implementations superseded.

There is no behavior change. The file was not registered in compile.ts, was not re-exported from the package entry index.ts, and was not part of the package exports surface, so nothing observable changes.

There are zero references to headingExtractPlugin and HeadingData across packages, docs, and playground, excluding dist. The void md package typechecks cleanly with tsgo. The net change removes one file and 39 lines.
@Brooooooklyn
Brooooooklyn merged commit 8a07309 into main Jul 1, 2026
6 checks passed
@Brooooooklyn
Brooooooklyn deleted the 07-01-chore-md-remove-dead-heading-extract-plugin branch July 1, 2026 07:35
cpojer pushed a commit that referenced this pull request Sep 11, 2026
…10.1 (#236)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

2 participants