Skip to content

Commit da7c81f

Browse files
committed
ignore/types: add MDX format to Markdown types
Ref https://mdxjs.com/ Closes BurntSushi#2142
1 parent a4e3d56 commit da7c81f

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Unreleased changes. Release notes have not yet been written.
1010

1111
Feature enhancements:
1212

13-
* Added or improved file type filtering for DITA, Elixir, Fuchsia, Gentoo, GraphQL, USD, V
13+
* Added or improved file type filtering for DITA, Elixir, Fuchsia, Gentoo, GraphQL, Markdown, USD, V
1414
* [FEATURE #2195](https://github.com/BurntSushi/ripgrep/issues/2195):
1515
When `extra-verbose` mode is enabled in zsh, show extra file type info.
1616
* [FEATURE #2409](https://github.com/BurntSushi/ripgrep/pull/2409):

crates/ignore/src/default_types.rs

+10-1
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,18 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[
160160
"*.mdwn",
161161
"*.mkd",
162162
"*.mkdn",
163+
"*.mdx",
163164
]),
164165
("matlab", &["*.m"]),
165-
("md", &["*.markdown", "*.md", "*.mdown", "*.mdwn", "*.mkd", "*.mkdn"]),
166+
("md", &[
167+
"*.markdown",
168+
"*.md",
169+
"*.mdown",
170+
"*.mdwn",
171+
"*.mkd",
172+
"*.mkdn",
173+
"*.mdx",
174+
]),
166175
("meson", &["meson.build", "meson_options.txt"]),
167176
("minified", &["*.min.html", "*.min.css", "*.min.js"]),
168177
("mint", &["*.mint"]),

0 commit comments

Comments
 (0)