mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-21 21:30:47 +02:00
Update remaining references to refer to main branch as "main".
This commit is contained in:
parent
c7ec796cfc
commit
0acc578e52
8 changed files with 19 additions and 19 deletions
|
@ -876,7 +876,7 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for more information.
|
|||
|
||||
[npm-image]: https://img.shields.io/npm/v/markdownlint.svg
|
||||
[npm-url]: https://www.npmjs.com/package/markdownlint
|
||||
[ci-image]: https://github.com/DavidAnson/markdownlint/workflows/CI/badge.svg?branch=master
|
||||
[ci-url]: https://github.com/DavidAnson/markdownlint/actions?query=branch%3Amaster
|
||||
[ci-image]: https://github.com/DavidAnson/markdownlint/workflows/CI/badge.svg?branch=main
|
||||
[ci-url]: https://github.com/DavidAnson/markdownlint/actions?query=branch%3Amain
|
||||
[license-image]: https://img.shields.io/npm/l/markdownlint.svg
|
||||
[license-url]: https://opensource.org/licenses/MIT
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
var newLineRe = /\r\n|\r|\n/;
|
||||
var hashPrefix = "%m";
|
||||
var rulesMd = "https://github.com/DavidAnson/markdownlint" +
|
||||
"/blob/master/doc/Rules.md";
|
||||
"/blob/main/doc/Rules.md";
|
||||
|
||||
// Do-nothing function
|
||||
function noop() {}
|
||||
|
@ -173,7 +173,7 @@
|
|||
"Content gets parsed and displayed in the upper-right box; rule violations (if any) show up in the lower-right box.",
|
||||
"Click a violation for information about it or click its line number to highlighted it in the lower-left box.",
|
||||
"",
|
||||
"> *Note*: [All rules](https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md) are enabled except [MD013/line-length](https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md013) and [MD002/first-heading-h1](https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md002) (deprecated). ",
|
||||
"> *Note*: [All rules](https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md) are enabled except [MD013/line-length](https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md013) and [MD002/first-heading-h1](https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md002) (deprecated). ",
|
||||
"",
|
||||
"",
|
||||
"#### Resources",
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
|
||||
The [Markdown](https://en.wikipedia.org/wiki/Markdown) linter
|
||||
[`markdownlint`](https://github.com/DavidAnson/markdownlint) offers a variety of built-in validation
|
||||
[rules](https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md) and supports the
|
||||
creation of [custom rules](https://github.com/DavidAnson/markdownlint/blob/master/doc/CustomRules.md).
|
||||
[rules](https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md) and supports the
|
||||
creation of [custom rules](https://github.com/DavidAnson/markdownlint/blob/main/doc/CustomRules.md).
|
||||
The internal rules share various helper functions; this package exposes those for reuse by custom rules.
|
||||
|
||||
## API
|
||||
|
@ -42,7 +42,7 @@ module.exports = {
|
|||
};
|
||||
```
|
||||
|
||||
See also: [`markdownlint` built-in rule implementations](https://github.com/DavidAnson/markdownlint/tree/master/lib).
|
||||
See also: [`markdownlint` built-in rule implementations](https://github.com/DavidAnson/markdownlint/tree/main/lib).
|
||||
|
||||
## Tests
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ const schema = {
|
|||
"description": "JSON Schema URI (used by some editors)",
|
||||
"type": "string",
|
||||
"default": "https://raw.githubusercontent.com/DavidAnson/markdownlint" +
|
||||
"/master/schema/markdownlint-config-schema.json"
|
||||
"/main/schema/markdownlint-config-schema.json"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
"$schema": {
|
||||
"description": "JSON Schema URI (used by some editors)",
|
||||
"type": "string",
|
||||
"default": "https://raw.githubusercontent.com/DavidAnson/markdownlint/master/schema/markdownlint-config-schema.json"
|
||||
"default": "https://raw.githubusercontent.com/DavidAnson/markdownlint/main/schema/markdownlint-config-schema.json"
|
||||
},
|
||||
"MD001": {
|
||||
"description": "MD001/heading-increment/header-increment - Heading levels should only increment by one level at a time",
|
||||
|
|
|
@ -2811,12 +2811,12 @@ tape("someCustomRulesHaveValidUrl", (test) => {
|
|||
if (rule === customRules.anyBlockquote) {
|
||||
test.equal(
|
||||
rule.information.href,
|
||||
`${homepage}/blob/master/test/rules/any-blockquote.js`
|
||||
`${homepage}/blob/main/test/rules/any-blockquote.js`
|
||||
);
|
||||
} else if (rule === customRules.lettersEX) {
|
||||
test.equal(
|
||||
rule.information.href,
|
||||
`${homepage}/blob/master/test/rules/letters-E-X.js`
|
||||
`${homepage}/blob/main/test/rules/letters-E-X.js`
|
||||
);
|
||||
}
|
||||
});
|
||||
|
@ -2905,7 +2905,7 @@ tape("customRulesV1", (test) => {
|
|||
"ruleAlias": "any-blockquote",
|
||||
"ruleDescription": "Rule that reports an error for any blockquote",
|
||||
"ruleInformation":
|
||||
`${homepage}/blob/master/test/rules/any-blockquote.js`,
|
||||
`${homepage}/blob/main/test/rules/any-blockquote.js`,
|
||||
"errorDetail": "Blockquote spans 1 line(s).",
|
||||
"errorContext": "> Block",
|
||||
"errorRange": null },
|
||||
|
@ -2962,7 +2962,7 @@ tape("customRulesV1", (test) => {
|
|||
"ruleAlias": "letter-E-letter-X",
|
||||
"ruleDescription":
|
||||
"Rule that reports an error for lines with the letters 'EX'",
|
||||
"ruleInformation": `${homepage}/blob/master/test/rules/letters-E-X.js`,
|
||||
"ruleInformation": `${homepage}/blob/main/test/rules/letters-E-X.js`,
|
||||
"errorDetail": null,
|
||||
"errorContext": "text",
|
||||
"errorRange": null },
|
||||
|
@ -2971,7 +2971,7 @@ tape("customRulesV1", (test) => {
|
|||
"ruleAlias": "letter-E-letter-X",
|
||||
"ruleDescription":
|
||||
"Rule that reports an error for lines with the letters 'EX'",
|
||||
"ruleInformation": `${homepage}/blob/master/test/rules/letters-E-X.js`,
|
||||
"ruleInformation": `${homepage}/blob/main/test/rules/letters-E-X.js`,
|
||||
"errorDetail": null,
|
||||
"errorContext": "text",
|
||||
"errorRange": null }
|
||||
|
@ -3021,7 +3021,7 @@ tape("customRulesV2", (test) => {
|
|||
"ruleNames": [ "any-blockquote" ],
|
||||
"ruleDescription": "Rule that reports an error for any blockquote",
|
||||
"ruleInformation":
|
||||
`${homepage}/blob/master/test/rules/any-blockquote.js`,
|
||||
`${homepage}/blob/main/test/rules/any-blockquote.js`,
|
||||
"errorDetail": "Blockquote spans 1 line(s).",
|
||||
"errorContext": "> Block",
|
||||
"errorRange": null },
|
||||
|
@ -3071,7 +3071,7 @@ tape("customRulesV2", (test) => {
|
|||
"ruleNames": [ "letters-E-X", "letter-E-letter-X", "contains-ex" ],
|
||||
"ruleDescription":
|
||||
"Rule that reports an error for lines with the letters 'EX'",
|
||||
"ruleInformation": `${homepage}/blob/master/test/rules/letters-E-X.js`,
|
||||
"ruleInformation": `${homepage}/blob/main/test/rules/letters-E-X.js`,
|
||||
"errorDetail": null,
|
||||
"errorContext": "text",
|
||||
"errorRange": null },
|
||||
|
@ -3079,7 +3079,7 @@ tape("customRulesV2", (test) => {
|
|||
"ruleNames": [ "letters-E-X", "letter-E-letter-X", "contains-ex" ],
|
||||
"ruleDescription":
|
||||
"Rule that reports an error for lines with the letters 'EX'",
|
||||
"ruleInformation": `${homepage}/blob/master/test/rules/letters-E-X.js`,
|
||||
"ruleInformation": `${homepage}/blob/main/test/rules/letters-E-X.js`,
|
||||
"errorDetail": null,
|
||||
"errorContext": "text",
|
||||
"errorRange": null }
|
||||
|
|
|
@ -10,7 +10,7 @@ module.exports = {
|
|||
"description": "Rule that reports an error for any blockquote",
|
||||
"information": new URL(
|
||||
"https://github.com/DavidAnson/markdownlint" +
|
||||
"/blob/master/test/rules/any-blockquote.js"
|
||||
"/blob/main/test/rules/any-blockquote.js"
|
||||
),
|
||||
"tags": [ "test" ],
|
||||
"function": (params, onError) => {
|
||||
|
|
|
@ -9,7 +9,7 @@ module.exports = {
|
|||
"description": "Rule that reports an error for lines with the letters 'EX'",
|
||||
"information": new URL(
|
||||
"https://github.com/DavidAnson/markdownlint" +
|
||||
"/blob/master/test/rules/letters-E-X.js"
|
||||
"/blob/main/test/rules/letters-E-X.js"
|
||||
),
|
||||
"tags": [ "test" ],
|
||||
"function": function rule(params, onError) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue