Skip to content

MD055 add fixes #1902

Description

@non-zero-sum

Current state as at v0.40.0: MD055 provides detection, but no fixes.

Proposal: Add the following behaviour

  • On expectedLeadingPipe && !actualLeadingPipe: insert | ahead of leading token in first cell of row
  • On !expectedLeadingPipe && actualLeadingPipe: remove | and any leading whitespace from first cell of row
  • On expectedTrailingPipe && !actualTrailingPipe: insert | after trailing token in last cell of row
  • On !expectedTrailingPipe && actualTrailingPipe: remove | and any trailing whitespace from last cell of row

Note: this would not guarantee passing MD060 (table-column-style), which would need a seperate fix.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions