File tree Expand file tree Collapse file tree 3 files changed +14
-13
lines changed Expand file tree Collapse file tree 3 files changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -178,10 +178,11 @@ project.
178
178
179
179
After making any code modifications, run the appropriate formatting commands:
180
180
181
- #### Markdown Files
181
+ #### Markdown and MDX Files
182
182
183
- - ** Format** : Run ` make format-md ` after modifying any markdown files
184
- - ** Check** : Run ` make check-md ` to verify markdown files are formatted
183
+ - ** Format** : Run ` make format-md ` after modifying any markdown (.md) or MDX
184
+ (.mdx) files
185
+ - ** Check** : Run ` make check-md ` to verify markdown and MDX files are formatted
185
186
correctly
186
187
187
188
#### Rust and TOML Files
Original file line number Diff line number Diff line change @@ -84,10 +84,10 @@ check-format: ## Check code formatting
84
84
taplo format --check
85
85
86
86
.PHONY : check-md
87
- check-md : # # Check if markdown files are properly formatted
88
- @echo " Checking markdown formatting..."
89
- npx prettier --check " **/*.md"
90
- @echo " Markdown format check completed."
87
+ check-md : # # Check if markdown and MDX files are properly formatted
88
+ @echo " Checking markdown and MDX formatting..."
89
+ npx prettier --check " **/*.md" " **/*.mdx "
90
+ @echo " Markdown and MDX format check completed."
91
91
92
92
.PHONY : fix-trailing-whitespace
93
93
fix-trailing-whitespace : # # Remove trailing whitespaces from all files
@@ -150,10 +150,10 @@ format: ## Format code using rustfmt and taplo
150
150
taplo format
151
151
152
152
.PHONY : format-md
153
- format-md : # # Format all markdown files to wrap at 80 characters
154
- @echo " Formatting markdown files..."
155
- npx prettier --write " **/*.md"
156
- @echo " Markdown files have been formatted to 80 characters."
153
+ format-md : # # Format all markdown and MDX files to wrap at 80 characters
154
+ @echo " Formatting markdown and MDX files..."
155
+ npx prettier --write " **/*.md" " **/*.mdx "
156
+ @echo " Markdown and MDX files have been formatted to 80 characters."
157
157
158
158
.PHONY : lint
159
159
lint : # # Run linter (clippy)
Original file line number Diff line number Diff line change 3
3
"version" : " 1.0.0" ,
4
4
"description" : " Prettier configuration for markdown formatting" ,
5
5
"scripts" : {
6
- "format:md" : " prettier --write \" **/*.md\" " ,
7
- "check:md" : " prettier --check \" **/*.md\" "
6
+ "format:md" : " prettier --write \" **/*.md\" \" **/*.mdx \" " ,
7
+ "check:md" : " prettier --check \" **/*.md\" \" **/*.mdx \" "
8
8
},
9
9
"devDependencies" : {
10
10
"prettier" : " ^3.0.0"
You can’t perform that action at this time.
0 commit comments