Skip to content

fix: merge CLI --exclude patterns with .mdformat.toml exclude#578

Open
SAY-5 wants to merge 1 commit into
hukkin:masterfrom
SAY-5:fix-cli-exclude-merge
Open

fix: merge CLI --exclude patterns with .mdformat.toml exclude#578
SAY-5 wants to merge 1 commit into
hukkin:masterfrom
SAY-5:fix-cli-exclude-merge

Conversation

@SAY-5
Copy link
Copy Markdown

@SAY-5 SAY-5 commented May 13, 2026

CLI --exclude patterns are now additive with the .mdformat.toml exclude list instead of replacing it; TOML patterns stay rooted at the config dir and CLI patterns at the cwd, and a path is skipped if either set matches. Closes #575.

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.

--exclude CLI flag overwrites .mdformat.toml exclude instead of merging

1 participant