Skip to content

ci: lint Markdown files with markdownlint instead of prettier#548

Open
mvadari wants to merge 12 commits into
masterfrom
markdownlint
Open

ci: lint Markdown files with markdownlint instead of prettier#548
mvadari wants to merge 12 commits into
masterfrom
markdownlint

Conversation

@mvadari

@mvadari mvadari commented May 26, 2026

Copy link
Copy Markdown
Collaborator

High Level Overview of Change

Context of Change

Type of Change

  • New XLS Draft
  • XLS Update (changes to an existing XLS)
  • XLS Status Change (e.g., Draft → Final, Draft → Stagnant)
  • Process/Meta (changes to CONTRIBUTING.md, XLS-1, templates, etc.)
  • Infrastructure (CI, workflows, scripts, website)
  • Documentation (README updates, typo fixes)

Copilot AI review requested due to automatic review settings May 26, 2026 21:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the repo’s Markdown linting approach by switching Markdown formatting/lint checks from Prettier to markdownlint-cli, adding the required configuration and CI wiring, and applying automated fixes across existing spec Markdown files to conform to the new rules.

Changes:

  • Add markdownlint-cli to pre-commit and GitHub Actions, with repo-specific configuration/ignore files.
  • Stop running Prettier on *.md (via pre-commit exclude and .prettierignore) and document local linting in CONTRIBUTING.md.
  • Apply markdownlint-driven formatting updates across many existing XLS Markdown documents (primarily table/list formatting).

Reviewed changes

Copilot reviewed 66 out of 73 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
.github/workflows/lint.yml Adds a markdownlint job alongside existing Prettier checks.
.markdownlint.yaml Adds repository markdownlint rule configuration.
.markdownlintignore Adds ignore paths for markdownlint runs.
.pre-commit-config.yaml Excludes Markdown from Prettier and adds a markdownlint pre-commit hook.
.prettierignore Prevents Prettier from checking Markdown files.
CONTRIBUTING.md Documents how to run linting locally via pre-commit.
templates/AMENDMENT_TEMPLATE.md Reformats tables/quotes for markdownlint compliance.
XLS-0001-xls-process/README.md Minor spacing/link formatting to satisfy markdownlint.
XLS-0005-tagged-addresses/README.md Table formatting updates for markdownlint.
XLS-0007-deletable-accounts/README.md Table formatting updates for markdownlint.
XLS-0008-tickets/README.md Table formatting updates for markdownlint.
XLS-0009-blinded-tags/README.md Table/heading punctuation formatting updates for markdownlint.
XLS-0011-retiring-amendments/README.md Table formatting updates for markdownlint.
XLS-0012-secret-numbers/README.md Table formatting updates for markdownlint.
XLS-0013-tickets/README.md Table formatting updates for markdownlint.
XLS-0015-concise-tx-id/README.md Table separator formatting updates for markdownlint.
XLS-0017-xfl/README.md Table formatting updates for markdownlint.
XLS-0021-asset-code-prefixes/README.md Table formatting updates for markdownlint.
XLS-0023-lite-accounts/README.md Table formatting updates for markdownlint.
XLS-0024-nft-metadata/README.md Heading punctuation and table formatting updates for markdownlint.
XLS-0025-enhanced-secret-numbers/README.md Table formatting updates for markdownlint.
XLS-0026-iou-token-metadata/README.md Table formatting updates for markdownlint.
XLS-0032-tx-request-uri/README.md List indentation and formatting updates for markdownlint.
XLS-0034-paychan-escrow-for-tokens/README.md Heading punctuation and table formatting updates for markdownlint.
XLS-0035-uritoken/README.md Table formatting updates for markdownlint.
XLS-0037-concise-transaction-identifier-ctid/README.md Table formatting updates for markdownlint.
XLS-0037-concise-transaction-identifier-ctid/QUICKSTART.md Table formatting updates for markdownlint.
XLS-0037-concise-transaction-identifier-ctid/ctid.py Removes trailing whitespace flagged by linting.
XLS-0039-clawback/README.md Table formatting updates for markdownlint.
XLS-0040-decentralized-identity/README.md Table/heading punctuation and JSON example indentation updates for markdownlint.
XLS-0041-xpop/README.md Front-matter and JSON example indentation updates for markdownlint.
XLS-0042-plugins/README.md Ordered list formatting updates for markdownlint.
XLS-0045-prepublish-validator-lists/README.md Table formatting and heading punctuation updates for markdownlint.
XLS-0046-dynamic-non-fungible-tokens/README.md List/table formatting updates for markdownlint.
XLS-0047-PriceOracles/README.md Table/list formatting updates for markdownlint.
XLS-0049-multiple-signer-lists/README.md Table formatting updates for markdownlint.
XLS-0051-nftoken-escrow/README.md Table formatting updates for markdownlint.
XLS-0052-NFTokenMintOffer/README.md Table formatting updates for markdownlint.
XLS-0054-nftokenoffer-destination-tag/README.md Table formatting updates for markdownlint.
XLS-0055-remit/README.md Converts an ad-hoc table into a proper Markdown table.
XLS-0056-batch/README.md Table formatting updates for markdownlint.
XLS-0061-cross-currency-nftokenacceptof/README.md Table formatting updates for markdownlint.
XLS-0062-options/README.md Table formatting updates for markdownlint.
XLS-0063-signin/README.md Table formatting updates for markdownlint.
XLS-0064-pseudo-account/README.md Table formatting updates for markdownlint.
XLS-0067-charge/README.md Table formatting updates for markdownlint.
XLS-0069-simulate/README.md Table formatting updates for markdownlint.
XLS-0070-credentials/README.md Table formatting updates for markdownlint (incl. new table delimiter row).
XLS-0073-amm-clawback/README.md Table formatting updates for markdownlint.
XLS-0074-account-permissions/README.md Table formatting updates for markdownlint.
XLS-0075-permission-delegation/README.md Table formatting updates for markdownlint.
XLS-0076-min-incoming-amount/README.md Table formatting updates for markdownlint.
XLS-0077-deep-freeze/README.md Table formatting updates for markdownlint.
XLS-0078-subscriptions/README.md Table formatting updates for markdownlint.
XLS-0080-permissioned-domains/README.md Table formatting and minor wording/parentheses change for markdownlint.
XLS-0085-token-escrow/README.md Table formatting updates and trims a stray space inside inline code.
XLS-0086-firewall/README.md Table formatting updates for markdownlint.
XLS-0089-multi-purpose-token-metadata-schema/README.md Table formatting updates for markdownlint.
XLS-0094-dynamic-MPT/README.md Table formatting updates and removes trailing punctuation from a heading.
XLS-0100-smart-escrows/README.md Large set of table formatting updates for markdownlint.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .markdownlint.yaml Outdated

# MD028: Blank line inside blockquote
# Disabled: Multi-paragraph blockquotes are valid
# MD028: false
@mvadari mvadari requested review from Tapanito and sappenin May 26, 2026 22:29
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