From da7c81fb960a2f5d0e3e3abd4bb86d7bb223ea57 Mon Sep 17 00:00:00 2001 From: Andrew Gallant Date: Sat, 8 Jul 2023 10:08:28 -0400 Subject: [PATCH] ignore/types: add MDX format to Markdown types Ref https://mdxjs.com/ Closes #2142 --- CHANGELOG.md | 2 +- crates/ignore/src/default_types.rs | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 33cec3fa..2e5d900b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ Unreleased changes. Release notes have not yet been written. Feature enhancements: -* Added or improved file type filtering for DITA, Elixir, Fuchsia, Gentoo, GraphQL, USD, V +* Added or improved file type filtering for DITA, Elixir, Fuchsia, Gentoo, GraphQL, Markdown, USD, V * [FEATURE #2195](https://github.com/BurntSushi/ripgrep/issues/2195): When `extra-verbose` mode is enabled in zsh, show extra file type info. * [FEATURE #2409](https://github.com/BurntSushi/ripgrep/pull/2409): diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs index 08374599..21c7cbc4 100644 --- a/crates/ignore/src/default_types.rs +++ b/crates/ignore/src/default_types.rs @@ -160,9 +160,18 @@ pub const DEFAULT_TYPES: &[(&str, &[&str])] = &[ "*.mdwn", "*.mkd", "*.mkdn", + "*.mdx", ]), ("matlab", &["*.m"]), - ("md", &["*.markdown", "*.md", "*.mdown", "*.mdwn", "*.mkd", "*.mkdn"]), + ("md", &[ + "*.markdown", + "*.md", + "*.mdown", + "*.mdwn", + "*.mkd", + "*.mkdn", + "*.mdx", + ]), ("meson", &["meson.build", "meson_options.txt"]), ("minified", &["*.min.html", "*.min.css", "*.min.js"]), ("mint", &["*.mint"]),