Repository navigation
Conversation
…ributors list Allow projects to opt out of markdownlint comments around the contributors table, and preserve existing tables where markdownlint comments were removed. - Support markdownlint config option in .all-contributorsrc (markdownlint: false) and CLI flag (--no-markdownlint / --markdownlint). - When markdownlint is not explicitly configured, inspect existing table content; if prettier-ignore-start is present without markdownlint-disable, preserve the user's omission. - Add unit tests verifying markdownlint opt-out, explicit inclusion, and preservation of existing tables. - Closes #540 Co-Authored-By: Antigravity <noreply@google.com>
Contributor
This comment was marked as spam.
This comment was marked as spam.
3 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Resolves #540.
Currently,
injectListBetweenTagsalways injects<!-- markdownlint-disable -->and<!-- markdownlint-restore -->with no way to opt out. In projects that do not usemarkdownlint, these comments are unwanted noise that get re-injected on every run even after being removed manually.This PR adds:
"markdownlint": falsein.all-contributorsrcto disable markdownlint comments.--no-markdownlintCLI flag.markdownlintis not explicitly configured (undefined),injectListBetweenTagsinspects the existing content between tags. If the existing list has<!-- prettier-ignore-start -->but lacks<!-- markdownlint-disable -->, it preserves the developer's omission and avoids re-adding them.initlists keep their markdownlint comments by default.markdownlint: false), explicit inclusion (markdownlint: true), and automatic preservation for existing files with and without markdownlint comments.Types of changes