1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-01-19 05:49:14 +02:00

ignore/types: add MDX format to Markdown types

Ref https://mdxjs.com/

Closes #2142
This commit is contained in:
Andrew Gallant 2023-07-08 10:08:28 -04:00
parent a4e3d56de1
commit da7c81fb96
2 changed files with 11 additions and 2 deletions

View File

@ -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):

View File

@ -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"]),