You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -303,6 +303,37 @@ If you find this distracting, linting can be configured to run only when the doc
303
303
304
304
> **Note**: When configured to run `onSave`, the list of reported issues will become outdated while the document is edited and will update when the document is saved.
305
305
306
+
### markdownlint.severityForError
307
+
308
+
By default, the `markdownlint` library reports violations at severity level `error` and they are displayed in VS Code at Diagnostic Severity `Warning`.
309
+
310
+
If you want to change the Diagnostic Severity shown by VS Code to something else, the `markdownlint.severityForError` configuration property can be set to any of the following values:
|`Error`| Something not allowed by the rules of a language or other means |
315
+
|`Warning`| Something suspicious but allowed |
316
+
|`Information`| Something to inform about but not a problem |
317
+
|`Hint`| Something to hint to a better way of doing it |
318
+
|`Ignore`|*Ignore the violation and do not report it*|
319
+
320
+
For example:
321
+
322
+
```json
323
+
{
324
+
"editor.someSetting": true,
325
+
"markdownlint.severityForError": "Information"
326
+
}
327
+
```
328
+
329
+
### markdownlint.severityForWarning
330
+
331
+
This configuration property behaves the same as `markdownlint.severityForError` (see above) and is used for violations reported by the `markdownlint` library at severity level `warning`.
332
+
333
+
By default, such violations are displayed in VS Code at Diagnostic Severity `Information`.
334
+
335
+
The value of `severityForWarning` can be the same as the value of `severityForError`.
336
+
306
337
### markdownlint.customRules
307
338
308
339
Custom rules can be specified in VS Code's user/workspace configuration to apply additional linting beyond the default set of rules. Custom rules are specified by the path to a JavaScript file or the name of or path to an [npm](https://www.npmjs.com/) package exporting one rule or an array of rules ([examples of custom rules](https://www.npmjs.com/search?q=keywords:markdownlint-rule)).
0 commit comments