Skip to content

Catch trailing whitespace and consecutive blank lines in MDX format check #305

Description

@Aryex

The MDX format check (scripts/check-format.sh via remark + remark-preset-lint-recommended) does not flag trailing whitespace or consecutive blank lines, so these slip in unnoticed (see discussion on #299).

Proposal: add two lint rules to .remarkrc.json:

  • remark-lint-no-trailing-spaces
  • remark-lint-no-consecutive-blank-lines

Note: enabling these surfaces ~209 pre-existing violations across the docs. The auto-fix (pnpm format:mdx) should land in its own PR to keep the diff reviewable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingci/cd

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions