Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions docs/users/configuration_file.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,19 @@ even in the case that they are directly referenced in a command line invocation.
```toml
# .mdformat.toml
exclude = [
"CHANGELOG.md", # exclude a single root level file
"venv/**", # recursively exclude a root level directory
"**/node_modules/**", # recursively exclude a directory at any level
"**/*.txt", # exclude all .txt files
"**/*.m[!d]", "**/*.[!m]d", # exclude all files that are not suffixed .md
# exclude a single root level file
"CHANGELOG.md",

# recursively exclude a root level directory
"venv/**",

# recursively exclude a directory at any level
"**/node_modules/**",

# exclude all .txt files
"**/*.txt",

# exclude all files that are not suffixed .md
"**/?", "**/??", "**/???", "**/*[!.]??", "**/*[!m]?", "**/*[!d]",
]
```