GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Generated contributors list always adds markdownlint-disable/restore comments, with no opt-out · Issue #540 · all-contributors/cli

Generated contributors list always adds markdownlint-disable/restore comments, with no opt-out #540

New issue
Copy link
New issue
Copy link
Closed
#541
Closed
Generated contributors list always adds markdownlint-disable/restore comments, with no opt-out#540
#541
Copy link

Description

@JoshuaKGoldberg
JoshuaKGoldberg
opened on Sep 26, 2026
Issue body actions
  • all-contributors-cli version: 6.26.1 (also 6.27.0-rc.1)
  • node version: 24.15.0
  • npm (or yarn) version: pnpm 11.24.0

Relevant code or config

cli/src/generate/index.js

Lines 46 to 51 in 98ec1f0

previousContent.slice(0, endOfOpeningTagIndex + closingTag.length),
'\n<!-- prettier-ignore-start -->',
'\n<!-- markdownlint-disable -->',
newContent.replace('\n', `\n${' '.repeat(nbSpaces)}`),
'<!-- markdownlint-restore -->',
'\n<!-- prettier-ignore-end -->',

What you did:

Added a contributor with all-contributors-cli add (and via the bot) in a repo that doesn't use markdownlint.

What happened:

The contributors list gets wrapped in markdownlint comments, even though the repo never had them:

 <!-- prettier-ignore-start -->
+<!-- markdownlint-disable -->
 <table>
   ...
 </table>

+<!-- markdownlint-restore -->
 <!-- prettier-ignore-end -->

Reproduction repository:

JoshuaKGoldberg/create-typescript-app#2327 (the bot adds these lines, and they're removed by hand in a follow-up commit each time; see JoshuaKGoldberg/create-typescript-app#2188)

Problem description:

injectListBetweenTags always inserts <!-- markdownlint-disable --> / <!-- markdownlint-restore -->, with no way to opt out. For repos that don't use markdownlint these are just noise, and they get re-added on every run even after being removed. Repos that generate or check their README content, such as templates, can't keep the table in sync without also emitting markdownlint comments.

Suggested solution:

Either or both of:

  1. A config option to skip them, e.g. "markdownlint": false in .all-contributorsrc
  2. Preserve whatever is already between the list tags: only emit the markdownlint comments if the existing list already has them (or when creating a new list via init)
Reacted by Jim Madge

Activity

  1. JimMadge
    closed this as completedin #541on Oct 14, 2026
  2. JimMadge
    added a commit that references this issue on Oct 19, 2026

    fix: don't re-add removed markdownlint comments to generated lists (a…

    This issue will close once commit d3c1239 is merged into the 'main' branch.
    d3c1239
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

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.