From e8e1ac1be2c6fd4bed105d309205a5eab8789203 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 13 Jan 2025 17:13:48 +0100 Subject: [PATCH] Refactor to remove `http:` where possible --- .../remark-lint-correct-link-syntax/index.js | 8 ++-- .../remark-lint-correct-link-syntax/readme.md | 8 ++-- packages/remark-lint-definition-case/index.js | 6 +-- .../remark-lint-definition-case/readme.md | 6 +-- .../remark-lint-definition-sort/package.json | 2 +- .../remark-lint-definition-spacing/index.js | 14 +++---- .../remark-lint-definition-spacing/readme.md | 14 +++---- .../remark-lint-final-definition/index.js | 14 +++---- .../remark-lint-final-definition/readme.md | 14 +++---- .../remark-lint-link-title-style/index.js | 42 +++++++++---------- .../remark-lint-link-title-style/readme.md | 42 +++++++++---------- .../remark-lint-maximum-line-length/index.js | 40 +++++++++--------- .../remark-lint-maximum-line-length/readme.md | 40 +++++++++--------- .../remark-lint-mdx-jsx-quote-style/index.js | 22 +++++----- .../remark-lint-mdx-jsx-quote-style/readme.md | 22 +++++----- .../remark-lint-mdx-jsx-self-close/index.js | 4 +- .../remark-lint-mdx-jsx-self-close/readme.md | 4 +- .../index.js | 4 +- .../readme.md | 4 +- packages/remark-lint-no-empty-url/index.js | 6 +-- packages/remark-lint-no-empty-url/readme.md | 6 +-- .../index.js | 4 +- .../readme.md | 4 +- 23 files changed, 165 insertions(+), 165 deletions(-) diff --git a/packages/remark-lint-correct-link-syntax/index.js b/packages/remark-lint-correct-link-syntax/index.js index ede9882b..67a86828 100644 --- a/packages/remark-lint-correct-link-syntax/index.js +++ b/packages/remark-lint-correct-link-syntax/index.js @@ -37,14 +37,14 @@ * @example * {"name": "ok.md"} * - * [Mercury](http://example.com/mercury/) and - * ![Venus](http://example.com/venus.png). + * [Mercury](https://example.com/mercury/) and + * ![Venus](https://example.com/venus.png). * * @example * {"label": "input", "name": "not-ok.md"} * - * (Mercury)[http://example.com/mercury/] and - * !(Venus)[http://example.com/venus.png]. + * (Mercury)[https://example.com/mercury/] and + * !(Venus)[https://example.com/venus.png]. * @example * {"label": "output", "name": "not-ok.md"} * diff --git a/packages/remark-lint-correct-link-syntax/readme.md b/packages/remark-lint-correct-link-syntax/readme.md index 0cd19916..bbdc444a 100644 --- a/packages/remark-lint-correct-link-syntax/readme.md +++ b/packages/remark-lint-correct-link-syntax/readme.md @@ -137,8 +137,8 @@ Transform ([`Transformer` from `unified`][github-unified-transformer]). ###### In ```markdown -[Mercury](http://example.com/mercury/) and -![Venus](http://example.com/venus.png). +[Mercury](https://example.com/mercury/) and +![Venus](https://example.com/venus.png). ``` ###### Out @@ -150,8 +150,8 @@ No messages. ###### In ```markdown -(Mercury)[http://example.com/mercury/] and -!(Venus)[http://example.com/venus.png]. +(Mercury)[https://example.com/mercury/] and +!(Venus)[https://example.com/venus.png]. ``` ###### Out diff --git a/packages/remark-lint-definition-case/index.js b/packages/remark-lint-definition-case/index.js index fd95be10..34e6ba1f 100644 --- a/packages/remark-lint-definition-case/index.js +++ b/packages/remark-lint-definition-case/index.js @@ -41,16 +41,16 @@ * @example * {"name": "ok.md"} * - * [mercury]: http://example.com "Mercury" + * [mercury]: https://example.com "Mercury" * * @example * {"label": "input", "name": "not-ok.md"} * - * [Mercury]: http://example.com "Mercury" + * [Mercury]: https://example.com "Mercury" * @example * {"label": "output", "name": "not-ok.md"} * - * 1:1-1:40: Unexpected uppercase characters in definition label, expected lowercase + * 1:1-1:41: Unexpected uppercase characters in definition label, expected lowercase * * @example * {"gfm": true, "label": "input", "name": "gfm.md"} diff --git a/packages/remark-lint-definition-case/readme.md b/packages/remark-lint-definition-case/readme.md index 082c870c..5530fcda 100644 --- a/packages/remark-lint-definition-case/readme.md +++ b/packages/remark-lint-definition-case/readme.md @@ -146,7 +146,7 @@ Due to this, it’s recommended to use lowercase and turn this rule on. ###### In ```markdown -[mercury]: http://example.com "Mercury" +[mercury]: https://example.com "Mercury" ``` ###### Out @@ -158,13 +158,13 @@ No messages. ###### In ```markdown -[Mercury]: http://example.com "Mercury" +[Mercury]: https://example.com "Mercury" ``` ###### Out ```text -1:1-1:40: Unexpected uppercase characters in definition label, expected lowercase +1:1-1:41: Unexpected uppercase characters in definition label, expected lowercase ``` ##### `gfm.md` diff --git a/packages/remark-lint-definition-sort/package.json b/packages/remark-lint-definition-sort/package.json index d3e22856..bdb5c046 100644 --- a/packages/remark-lint-definition-sort/package.json +++ b/packages/remark-lint-definition-sort/package.json @@ -23,7 +23,7 @@ }, "author": "Titus Wormer (https://wooorm.com)", "contributors": [ - "Titus Wormer (https://wooorm.com)" + "Titus Wormer " ], "sideEffects": false, "type": "module", diff --git a/packages/remark-lint-definition-spacing/index.js b/packages/remark-lint-definition-spacing/index.js index e051d6f4..ebadb3fa 100644 --- a/packages/remark-lint-definition-spacing/index.js +++ b/packages/remark-lint-definition-spacing/index.js @@ -47,27 +47,27 @@ * * The first planet is [planet mercury][]. * - * [planet mercury]: http://example.com + * [planet mercury]: https://example.com * * @example * {"label": "input", "name": "not-ok-consecutive.md"} * - * [planet␠␠␠␠mercury]: http://example.com + * [planet␠␠␠␠mercury]: https://example.com * @example * {"label": "output", "name": "not-ok-consecutive.md"} * - * 1:1-1:40: Unexpected `4` consecutive spaces in definition label, expected `1` space, remove `3` spaces + * 1:1-1:41: Unexpected `4` consecutive spaces in definition label, expected `1` space, remove `3` spaces * * @example * {"label": "input", "name": "not-ok-non-space.md"} * - * [pla␉net␊mer␍cury]: http://e.com + * [pla␉net␊mer␍cury]: https://e.com * @example * {"label": "output", "name": "not-ok-non-space.md"} * - * 1:1-3:20: Unexpected non-space whitespace character `\t` in definition label, expected `1` space, replace it - * 1:1-3:20: Unexpected non-space whitespace character `\n` in definition label, expected `1` space, replace it - * 1:1-3:20: Unexpected non-space whitespace character `\r` in definition label, expected `1` space, replace it + * 1:1-3:21: Unexpected non-space whitespace character `\t` in definition label, expected `1` space, replace it + * 1:1-3:21: Unexpected non-space whitespace character `\n` in definition label, expected `1` space, replace it + * 1:1-3:21: Unexpected non-space whitespace character `\r` in definition label, expected `1` space, replace it */ /** diff --git a/packages/remark-lint-definition-spacing/readme.md b/packages/remark-lint-definition-spacing/readme.md index 082eb5ee..eacea0bb 100644 --- a/packages/remark-lint-definition-spacing/readme.md +++ b/packages/remark-lint-definition-spacing/readme.md @@ -152,7 +152,7 @@ Due to this, it’s recommended to use one space and turn this rule on. ```markdown The first planet is [planet mercury][]. -[planet mercury]: http://example.com +[planet mercury]: https://example.com ``` ###### Out @@ -164,13 +164,13 @@ No messages. ###### In ```markdown -[planet␠␠␠␠mercury]: http://example.com +[planet␠␠␠␠mercury]: https://example.com ``` ###### Out ```text -1:1-1:40: Unexpected `4` consecutive spaces in definition label, expected `1` space, remove `3` spaces +1:1-1:41: Unexpected `4` consecutive spaces in definition label, expected `1` space, remove `3` spaces ``` ##### `not-ok-non-space.md` @@ -178,15 +178,15 @@ No messages. ###### In ```markdown -[pla␉net␊mer␍cury]: http://e.com +[pla␉net␊mer␍cury]: https://e.com ``` ###### Out ```text -1:1-3:20: Unexpected non-space whitespace character `\t` in definition label, expected `1` space, replace it -1:1-3:20: Unexpected non-space whitespace character `\n` in definition label, expected `1` space, replace it -1:1-3:20: Unexpected non-space whitespace character `\r` in definition label, expected `1` space, replace it +1:1-3:21: Unexpected non-space whitespace character `\t` in definition label, expected `1` space, replace it +1:1-3:21: Unexpected non-space whitespace character `\n` in definition label, expected `1` space, replace it +1:1-3:21: Unexpected non-space whitespace character `\r` in definition label, expected `1` space, replace it ``` ## Compatibility diff --git a/packages/remark-lint-final-definition/index.js b/packages/remark-lint-final-definition/index.js index 4b9f419c..19096629 100644 --- a/packages/remark-lint-final-definition/index.js +++ b/packages/remark-lint-final-definition/index.js @@ -44,35 +44,35 @@ * * Mercury. * - * [venus]: http://example.com + * [venus]: https://example.com * * @example * {"name": "ok.md"} * - * [mercury]: http://example.com/mercury/ - * [venus]: http://example.com/venus/ + * [mercury]: https://example.com/mercury/ + * [venus]: https://example.com/venus/ * * @example * {"name": "ok-html-comments.md"} * * Mercury. * - * [venus]: http://example.com/venus/ + * [venus]: https://example.com/venus/ * * * - * [earth]: http://example.com/earth/ + * [earth]: https://example.com/earth/ * * @example * {"name": "ok-mdx-comments.mdx", "mdx": true} * * Mercury. * - * [venus]: http://example.com/venus/ + * [venus]: https://example.com/venus/ * * {/* Comments in expressions in MDX are ignored. *␀/} * - * [earth]: http://example.com/earth/ + * [earth]: https://example.com/earth/ * * @example * {"label": "input", "name": "not-ok.md"} diff --git a/packages/remark-lint-final-definition/readme.md b/packages/remark-lint-final-definition/readme.md index e73e011b..b9905ce0 100644 --- a/packages/remark-lint-final-definition/readme.md +++ b/packages/remark-lint-final-definition/readme.md @@ -149,7 +149,7 @@ If you prefer that, turn on this rule. ```markdown Mercury. -[venus]: http://example.com +[venus]: https://example.com ``` ###### Out @@ -161,8 +161,8 @@ No messages. ###### In ```markdown -[mercury]: http://example.com/mercury/ -[venus]: http://example.com/venus/ +[mercury]: https://example.com/mercury/ +[venus]: https://example.com/venus/ ``` ###### Out @@ -176,11 +176,11 @@ No messages. ```markdown Mercury. -[venus]: http://example.com/venus/ +[venus]: https://example.com/venus/ -[earth]: http://example.com/earth/ +[earth]: https://example.com/earth/ ``` ###### Out @@ -197,11 +197,11 @@ No messages. ```mdx Mercury. -[venus]: http://example.com/venus/ +[venus]: https://example.com/venus/ {/* Comments in expressions in MDX are ignored. */} -[earth]: http://example.com/earth/ +[earth]: https://example.com/earth/ ``` ###### Out diff --git a/packages/remark-lint-link-title-style/index.js b/packages/remark-lint-link-title-style/index.js index cc71fdf3..2eaee395 100644 --- a/packages/remark-lint-link-title-style/index.js +++ b/packages/remark-lint-link-title-style/index.js @@ -79,66 +79,66 @@ * @example * {"name": "ok-consistent.md"} * - * [Mercury](http://example.com/mercury/), - * [Venus](http://example.com/venus/ "Go to Venus"), and - * ![Earth](http://example.com/earth/ "Go to Earth"). + * [Mercury](https://example.com/mercury/), + * [Venus](https://example.com/venus/ "Go to Venus"), and + * ![Earth](https://example.com/earth/ "Go to Earth"). * - * [Mars]: http://example.com/mars/ "Go to Mars" + * [Mars]: https://example.com/mars/ "Go to Mars" * * @example * {"label": "input", "name": "not-ok-consistent.md"} * - * [Mercury](http://example.com/mercury/ "Go to Mercury") and - * ![Venus](http://example.com/venus/ 'Go to Venus'). + * [Mercury](https://example.com/mercury/ "Go to Mercury") and + * ![Venus](https://example.com/venus/ 'Go to Venus'). * - * [Earth]: http://example.com/earth/ (Go to Earth) + * [Earth]: https://example.com/earth/ (Go to Earth) * @example * {"label": "output", "name": "not-ok-consistent.md"} * - * 2:1-2:50: Unexpected title markers `'`, expected `"` - * 4:1-4:49: Unexpected title markers `'('` and `')'`, expected `"` + * 2:1-2:51: Unexpected title markers `'`, expected `"` + * 4:1-4:50: Unexpected title markers `'('` and `')'`, expected `"` * * @example * {"config": "\"", "name": "ok-double.md"} * - * [Mercury](http://example.com/mercury/ "Go to Mercury"). + * [Mercury](https://example.com/mercury/ "Go to Mercury"). * * @example * {"config": "\"", "label": "input", "name": "not-ok-double.md"} * - * [Mercury](http://example.com/mercury/ 'Go to Mercury'). + * [Mercury](https://example.com/mercury/ 'Go to Mercury'). * @example * {"config": "\"", "label": "output", "name": "not-ok-double.md"} * - * 1:1-1:55: Unexpected title markers `'`, expected `"` + * 1:1-1:56: Unexpected title markers `'`, expected `"` * * @example * {"config": "'", "name": "ok-single.md"} * - * [Mercury](http://example.com/mercury/ 'Go to Mercury'). + * [Mercury](https://example.com/mercury/ 'Go to Mercury'). * * @example * {"config": "'", "label": "input", "name": "not-ok-single.md"} * - * [Mercury](http://example.com/mercury/ "Go to Mercury"). + * [Mercury](https://example.com/mercury/ "Go to Mercury"). * @example * {"config": "'", "label": "output", "name": "not-ok-single.md"} * - * 1:1-1:55: Unexpected title markers `"`, expected `'` + * 1:1-1:56: Unexpected title markers `"`, expected `'` * * @example * {"config": "()", "name": "ok-paren.md"} * - * [Mercury](http://example.com/mercury/ (Go to Mercury)). + * [Mercury](https://example.com/mercury/ (Go to Mercury)). * * @example * {"config": "()", "label": "input", "name": "not-ok-paren.md"} * - * [Mercury](http://example.com/mercury/ "Go to Mercury"). + * [Mercury](https://example.com/mercury/ "Go to Mercury"). * @example * {"config": "()", "label": "output", "name": "not-ok-paren.md"} * - * 1:1-1:55: Unexpected title markers `"`, expected `'('` and `')'` + * 1:1-1:56: Unexpected title markers `"`, expected `'('` and `')'` * * @example * {"config": "🌍", "label": "output", "name": "not-ok.md", "positionless": true} @@ -150,15 +150,15 @@ * * Parens in URLs work correctly: * - * [Mercury](http://example.com/(mercury) "Go to Mercury") and - * [Venus](http://example.com/(venus)). + * [Mercury](https://example.com/(mercury) "Go to Mercury") and + * [Venus](https://example.com/(venus)). * * @example * {"config": "\"", "name": "ok-whitespace.md"} * * Trailing whitespace works correctly: * - * [Mercury](http://example.com/mercury/␠"Go to Mercury"␠). + * [Mercury](https://example.com/mercury/␠"Go to Mercury"␠). */ /** diff --git a/packages/remark-lint-link-title-style/readme.md b/packages/remark-lint-link-title-style/readme.md index 6a03d510..128e4442 100644 --- a/packages/remark-lint-link-title-style/readme.md +++ b/packages/remark-lint-link-title-style/readme.md @@ -187,11 +187,11 @@ There is no option to use parens. ###### In ```markdown -[Mercury](http://example.com/mercury/), -[Venus](http://example.com/venus/ "Go to Venus"), and -![Earth](http://example.com/earth/ "Go to Earth"). +[Mercury](https://example.com/mercury/), +[Venus](https://example.com/venus/ "Go to Venus"), and +![Earth](https://example.com/earth/ "Go to Earth"). -[Mars]: http://example.com/mars/ "Go to Mars" +[Mars]: https://example.com/mars/ "Go to Mars" ``` ###### Out @@ -203,17 +203,17 @@ No messages. ###### In ```markdown -[Mercury](http://example.com/mercury/ "Go to Mercury") and -![Venus](http://example.com/venus/ 'Go to Venus'). +[Mercury](https://example.com/mercury/ "Go to Mercury") and +![Venus](https://example.com/venus/ 'Go to Venus'). -[Earth]: http://example.com/earth/ (Go to Earth) +[Earth]: https://example.com/earth/ (Go to Earth) ``` ###### Out ```text -2:1-2:50: Unexpected title markers `'`, expected `"` -4:1-4:49: Unexpected title markers `'('` and `')'`, expected `"` +2:1-2:51: Unexpected title markers `'`, expected `"` +4:1-4:50: Unexpected title markers `'('` and `')'`, expected `"` ``` ##### `ok-double.md` @@ -223,7 +223,7 @@ When configured with `'"'`. ###### In ```markdown -[Mercury](http://example.com/mercury/ "Go to Mercury"). +[Mercury](https://example.com/mercury/ "Go to Mercury"). ``` ###### Out @@ -237,13 +237,13 @@ When configured with `'"'`. ###### In ```markdown -[Mercury](http://example.com/mercury/ 'Go to Mercury'). +[Mercury](https://example.com/mercury/ 'Go to Mercury'). ``` ###### Out ```text -1:1-1:55: Unexpected title markers `'`, expected `"` +1:1-1:56: Unexpected title markers `'`, expected `"` ``` ##### `ok-single.md` @@ -253,7 +253,7 @@ When configured with `"'"`. ###### In ```markdown -[Mercury](http://example.com/mercury/ 'Go to Mercury'). +[Mercury](https://example.com/mercury/ 'Go to Mercury'). ``` ###### Out @@ -267,13 +267,13 @@ When configured with `"'"`. ###### In ```markdown -[Mercury](http://example.com/mercury/ "Go to Mercury"). +[Mercury](https://example.com/mercury/ "Go to Mercury"). ``` ###### Out ```text -1:1-1:55: Unexpected title markers `"`, expected `'` +1:1-1:56: Unexpected title markers `"`, expected `'` ``` ##### `ok-paren.md` @@ -283,7 +283,7 @@ When configured with `'()'`. ###### In ```markdown -[Mercury](http://example.com/mercury/ (Go to Mercury)). +[Mercury](https://example.com/mercury/ (Go to Mercury)). ``` ###### Out @@ -297,13 +297,13 @@ When configured with `'()'`. ###### In ```markdown -[Mercury](http://example.com/mercury/ "Go to Mercury"). +[Mercury](https://example.com/mercury/ "Go to Mercury"). ``` ###### Out ```text -1:1-1:55: Unexpected title markers `"`, expected `'('` and `')'` +1:1-1:56: Unexpected title markers `"`, expected `'('` and `')'` ``` ##### `not-ok.md` @@ -325,8 +325,8 @@ When configured with `'"'`. ```markdown Parens in URLs work correctly: -[Mercury](http://example.com/(mercury) "Go to Mercury") and -[Venus](http://example.com/(venus)). +[Mercury](https://example.com/(mercury) "Go to Mercury") and +[Venus](https://example.com/(venus)). ``` ###### Out @@ -342,7 +342,7 @@ When configured with `'"'`. ```markdown Trailing whitespace works correctly: -[Mercury](http://example.com/mercury/␠"Go to Mercury"␠). +[Mercury](https://example.com/mercury/␠"Go to Mercury"␠). ``` ###### Out diff --git a/packages/remark-lint-maximum-line-length/index.js b/packages/remark-lint-maximum-line-length/index.js index 4fcaeae3..04c24d14 100644 --- a/packages/remark-lint-maximum-line-length/index.js +++ b/packages/remark-lint-maximum-line-length/index.js @@ -52,15 +52,15 @@ * * Mercury mercury mercury mercury mercury mercury mercury mercury mercury `mercury()`. * - * Mercury mercury mercury mercury mercury mercury mercury mercury mercury . + * Mercury mercury mercury mercury mercury mercury mercury mercury mercury . * - * Mercury mercury mercury mercury mercury mercury mercury mercury mercury [mercury](http://localhost). + * Mercury mercury mercury mercury mercury mercury mercury mercury mercury [mercury](https://localhost). * - * Mercury mercury mercury mercury mercury mercury mercury mercury mercury ![mercury](http://localhost). + * Mercury mercury mercury mercury mercury mercury mercury mercury mercury ![mercury](https://localhost). * *
Mercury mercury mercury mercury mercury mercury mercury mercury mercury
* - * [foo]: http://localhost/mercury/mercury/mercury/mercury/mercury/mercury/mercury/mercury + * [foo]: https://localhost/mercury/mercury/mercury/mercury/mercury/mercury/mercury/mercury * * @example * {"config": 20, "label": "input", "name": "not-ok.md", "positionless": true} @@ -70,7 +70,7 @@ * * Mercury mercury mercury `mercury()`. * - * Mercury mercury mercury . + * Mercury mercury mercury . * * Mercury mercury mercury [m](example.com). * @@ -78,7 +78,7 @@ * * `mercury()` mercury mercury mercury. * - * mercury. + * mercury. * * [m](example.com) mercury. * @@ -91,11 +91,11 @@ * * 1:24: Unexpected `23` character line, expected at most `20` characters, remove `3` characters * 4:37: Unexpected `36` character line, expected at most `20` characters, remove `16` characters - * 6:44: Unexpected `43` character line, expected at most `20` characters, remove `23` characters + * 6:45: Unexpected `44` character line, expected at most `20` characters, remove `24` characters * 8:42: Unexpected `41` character line, expected at most `20` characters, remove `21` characters * 10:43: Unexpected `42` character line, expected at most `20` characters, remove `22` characters * 12:37: Unexpected `36` character line, expected at most `20` characters, remove `16` characters - * 14:28: Unexpected `27` character line, expected at most `20` characters, remove `7` characters + * 14:29: Unexpected `28` character line, expected at most `20` characters, remove `8` characters * 16:26: Unexpected `25` character line, expected at most `20` characters, remove `5` characters * 18:27: Unexpected `26` character line, expected at most `20` characters, remove `6` characters * 20:43: Unexpected `42` character line, expected at most `20` characters, remove `22` characters @@ -103,43 +103,43 @@ * @example * {"config": 20, "name": "long-autolinks-ok.md", "positionless": true} * - * + * * - * + * * mercury. * * Mercury - * . + * . * * Mercury - * + * * mercury. * * Mercury - * + * * mercury mercury. * * Mercury mercury - * + * * mercury mercury. * * @example * {"config": 20, "label": "input", "name": "long-autolinks-nok.md", "positionless": true} * - * mercury. + * mercury. * - * Mercury . + * Mercury . * * Mercury - * mercury. + * mercury. * - * Mercury + * Mercury * mercury. * @example * {"config": 20, "label": "output", "name": "long-autolinks-nok.md"} * - * 1:37: Unexpected `36` character line, expected at most `20` characters, remove `16` characters - * 6:37: Unexpected `36` character line, expected at most `20` characters, remove `16` characters + * 1:38: Unexpected `37` character line, expected at most `20` characters, remove `17` characters + * 6:38: Unexpected `37` character line, expected at most `20` characters, remove `17` characters * * @example * {"config": 20, "frontmatter": true, "name": "ok.md", "positionless": true} diff --git a/packages/remark-lint-maximum-line-length/readme.md b/packages/remark-lint-maximum-line-length/readme.md index 797ba094..3c084b2a 100644 --- a/packages/remark-lint-maximum-line-length/readme.md +++ b/packages/remark-lint-maximum-line-length/readme.md @@ -157,15 +157,15 @@ mercury. Mercury mercury mercury mercury mercury mercury mercury mercury mercury `mercury()`. -Mercury mercury mercury mercury mercury mercury mercury mercury mercury . +Mercury mercury mercury mercury mercury mercury mercury mercury mercury . -Mercury mercury mercury mercury mercury mercury mercury mercury mercury [mercury](http://localhost). +Mercury mercury mercury mercury mercury mercury mercury mercury mercury [mercury](https://localhost). -Mercury mercury mercury mercury mercury mercury mercury mercury mercury ![mercury](http://localhost). +Mercury mercury mercury mercury mercury mercury mercury mercury mercury ![mercury](https://localhost).
Mercury mercury mercury mercury mercury mercury mercury mercury mercury
-[foo]: http://localhost/mercury/mercury/mercury/mercury/mercury/mercury/mercury/mercury +[foo]: https://localhost/mercury/mercury/mercury/mercury/mercury/mercury/mercury/mercury ``` ###### Out @@ -184,7 +184,7 @@ mercury. Mercury mercury mercury `mercury()`. -Mercury mercury mercury . +Mercury mercury mercury . Mercury mercury mercury [m](example.com). @@ -192,7 +192,7 @@ Mercury mercury mercury ![m](example.com). `mercury()` mercury mercury mercury. - mercury. + mercury. [m](example.com) mercury. @@ -206,11 +206,11 @@ Mercury mercury ![m](example.com) mercury. ```text 1:24: Unexpected `23` character line, expected at most `20` characters, remove `3` characters 4:37: Unexpected `36` character line, expected at most `20` characters, remove `16` characters -6:44: Unexpected `43` character line, expected at most `20` characters, remove `23` characters +6:45: Unexpected `44` character line, expected at most `20` characters, remove `24` characters 8:42: Unexpected `41` character line, expected at most `20` characters, remove `21` characters 10:43: Unexpected `42` character line, expected at most `20` characters, remove `22` characters 12:37: Unexpected `36` character line, expected at most `20` characters, remove `16` characters -14:28: Unexpected `27` character line, expected at most `20` characters, remove `7` characters +14:29: Unexpected `28` character line, expected at most `20` characters, remove `8` characters 16:26: Unexpected `25` character line, expected at most `20` characters, remove `5` characters 18:27: Unexpected `26` character line, expected at most `20` characters, remove `6` characters 20:43: Unexpected `42` character line, expected at most `20` characters, remove `22` characters @@ -223,24 +223,24 @@ When configured with `20`. ###### In ```markdown - + - + mercury. Mercury -. +. Mercury - + mercury. Mercury - + mercury mercury. Mercury mercury - + mercury mercury. ``` @@ -255,22 +255,22 @@ When configured with `20`. ###### In ```markdown - mercury. + mercury. -Mercury . +Mercury . Mercury - mercury. + mercury. -Mercury +Mercury mercury. ``` ###### Out ```text -1:37: Unexpected `36` character line, expected at most `20` characters, remove `16` characters -6:37: Unexpected `36` character line, expected at most `20` characters, remove `16` characters +1:38: Unexpected `37` character line, expected at most `20` characters, remove `17` characters +6:38: Unexpected `37` character line, expected at most `20` characters, remove `17` characters ``` ##### `ok.md` diff --git a/packages/remark-lint-mdx-jsx-quote-style/index.js b/packages/remark-lint-mdx-jsx-quote-style/index.js index afade7a8..478bfa76 100644 --- a/packages/remark-lint-mdx-jsx-quote-style/index.js +++ b/packages/remark-lint-mdx-jsx-quote-style/index.js @@ -74,38 +74,38 @@ * @example * {"mdx": true, "name": "ok-consistent.mdx"} * - * Venus and - * Earth. + * Venus and + * Earth. * * @example * {"label": "input", "mdx": true, "name": "not-ok-consistent.mdx"} * - * Venus and - * Earth. + * Venus and + * Earth. * @example * {"label": "output", "mdx": true, "name": "not-ok-consistent.mdx"} * - * 2:4-2:36: Unexpected JSX quote markers `'`, expected `"` + * 2:4-2:37: Unexpected JSX quote markers `'`, expected `"` * * @example * {"config": "\"", "label": "input", "mdx": true, "name": "double-quote.mdx"} * - * Venus and - * Earth. + * Venus and + * Earth. * @example * {"config": "\"", "label": "output", "mdx": true, "name": "double-quote.mdx"} * - * 2:4-2:36: Unexpected JSX quote markers `'`, expected `"` + * 2:4-2:37: Unexpected JSX quote markers `'`, expected `"` * * @example * {"config": "'", "label": "input", "mdx": true, "name": "single-quote.mdx"} * - * Venus and - * Earth. + * Venus and + * Earth. * @example * {"config": "'", "label": "output", "mdx": true, "name": "single-quote.mdx"} * - * 1:4-1:36: Unexpected JSX quote markers `"`, expected `'` + * 1:4-1:37: Unexpected JSX quote markers `"`, expected `'` * * @example * {"label": "input", "mdx": true, "name": "other-attributes.mdx"} diff --git a/packages/remark-lint-mdx-jsx-quote-style/readme.md b/packages/remark-lint-mdx-jsx-quote-style/readme.md index fb53a727..03f9dee4 100644 --- a/packages/remark-lint-mdx-jsx-quote-style/readme.md +++ b/packages/remark-lint-mdx-jsx-quote-style/readme.md @@ -180,8 +180,8 @@ Pass `quote: "'"` to use single quotes. > MDX ([`remark-mdx`][github-remark-mdx]). ```mdx -Venus and -Earth. +Venus and +Earth. ``` ###### Out @@ -196,14 +196,14 @@ No messages. > MDX ([`remark-mdx`][github-remark-mdx]). ```mdx -Venus and -Earth. +Venus and +Earth. ``` ###### Out ```text -2:4-2:36: Unexpected JSX quote markers `'`, expected `"` +2:4-2:37: Unexpected JSX quote markers `'`, expected `"` ``` ##### `double-quote.mdx` @@ -216,14 +216,14 @@ When configured with `'"'`. > MDX ([`remark-mdx`][github-remark-mdx]). ```mdx -Venus and -Earth. +Venus and +Earth. ``` ###### Out ```text -2:4-2:36: Unexpected JSX quote markers `'`, expected `"` +2:4-2:37: Unexpected JSX quote markers `'`, expected `"` ``` ##### `single-quote.mdx` @@ -236,14 +236,14 @@ When configured with `"'"`. > MDX ([`remark-mdx`][github-remark-mdx]). ```mdx -Venus and -Earth. +Venus and +Earth. ``` ###### Out ```text -1:4-1:36: Unexpected JSX quote markers `"`, expected `'` +1:4-1:37: Unexpected JSX quote markers `"`, expected `'` ``` ##### `other-attributes.mdx` diff --git a/packages/remark-lint-mdx-jsx-self-close/index.js b/packages/remark-lint-mdx-jsx-self-close/index.js index b252ad04..be1e2acf 100644 --- a/packages/remark-lint-mdx-jsx-self-close/index.js +++ b/packages/remark-lint-mdx-jsx-self-close/index.js @@ -43,11 +43,11 @@ * @example * {"label": "input", "mdx": true, "name": "not-ok.mdx"} * - * . + * . * @example * {"label": "output", "mdx": true, "name": "not-ok.mdx"} * - * 1:1-1:41: Unexpected closing tag on empty element, expected self-closing opening tag + * 1:1-1:42: Unexpected closing tag on empty element, expected self-closing opening tag * * @example * {"mdx": true, "name": "whitespace.mdx"} diff --git a/packages/remark-lint-mdx-jsx-self-close/readme.md b/packages/remark-lint-mdx-jsx-self-close/readme.md index 4721ccce..2c36ffb1 100644 --- a/packages/remark-lint-mdx-jsx-self-close/readme.md +++ b/packages/remark-lint-mdx-jsx-self-close/readme.md @@ -156,13 +156,13 @@ No messages. > MDX ([`remark-mdx`][github-remark-mdx]). ```mdx -. +. ``` ###### Out ```text -1:1-1:41: Unexpected closing tag on empty element, expected self-closing opening tag +1:1-1:42: Unexpected closing tag on empty element, expected self-closing opening tag ``` ##### `whitespace.mdx` diff --git a/packages/remark-lint-no-duplicate-headings/index.js b/packages/remark-lint-no-duplicate-headings/index.js index d36a2b85..99d393f2 100644 --- a/packages/remark-lint-no-duplicate-headings/index.js +++ b/packages/remark-lint-no-duplicate-headings/index.js @@ -57,12 +57,12 @@ * * ## Mercury * - * ## [Mercury](http://example.com/mercury/) + * ## [Mercury](https://example.com/mercury/) * @example * {"label": "output", "name": "not-ok.md"} * * 3:1-3:11: Unexpected heading with equivalent text, expected unique headings - * 5:1-5:42: Unexpected heading with equivalent text, expected unique headings + * 5:1-5:43: Unexpected heading with equivalent text, expected unique headings * * @example * {"label": "input", "mdx": true, "name": "mdx.mdx"} diff --git a/packages/remark-lint-no-duplicate-headings/readme.md b/packages/remark-lint-no-duplicate-headings/readme.md index 8bf57e7e..aa2fb7a9 100644 --- a/packages/remark-lint-no-duplicate-headings/readme.md +++ b/packages/remark-lint-no-duplicate-headings/readme.md @@ -169,14 +169,14 @@ No messages. ## Mercury -## [Mercury](http://example.com/mercury/) +## [Mercury](https://example.com/mercury/) ``` ###### Out ```text 3:1-3:11: Unexpected heading with equivalent text, expected unique headings -5:1-5:42: Unexpected heading with equivalent text, expected unique headings +5:1-5:43: Unexpected heading with equivalent text, expected unique headings ``` ##### `mdx.mdx` diff --git a/packages/remark-lint-no-empty-url/index.js b/packages/remark-lint-no-empty-url/index.js index 1e576d8a..32051b5d 100644 --- a/packages/remark-lint-no-empty-url/index.js +++ b/packages/remark-lint-no-empty-url/index.js @@ -42,11 +42,11 @@ * @example * {"name": "ok.md"} * - * [Mercury](http://example.com/mercury/). + * [Mercury](https://example.com/mercury/). * - * ![Venus](http://example.com/venus/ "Go to Venus"). + * ![Venus](https://example.com/venus/ "Go to Venus"). * - * [earth]: http://example.com/earth/ + * [earth]: https://example.com/earth/ * * @example * {"label": "input", "name": "not-ok.md"} diff --git a/packages/remark-lint-no-empty-url/readme.md b/packages/remark-lint-no-empty-url/readme.md index 6185634b..da19501b 100644 --- a/packages/remark-lint-no-empty-url/readme.md +++ b/packages/remark-lint-no-empty-url/readme.md @@ -143,11 +143,11 @@ It’s recommended to fill them out. ###### In ```markdown -[Mercury](http://example.com/mercury/). +[Mercury](https://example.com/mercury/). -![Venus](http://example.com/venus/ "Go to Venus"). +![Venus](https://example.com/venus/ "Go to Venus"). -[earth]: http://example.com/earth/ +[earth]: https://example.com/earth/ ``` ###### Out diff --git a/packages/remark-lint-no-shortcut-reference-link/index.js b/packages/remark-lint-no-shortcut-reference-link/index.js index dca4d025..cb5a0921 100644 --- a/packages/remark-lint-no-shortcut-reference-link/index.js +++ b/packages/remark-lint-no-shortcut-reference-link/index.js @@ -44,14 +44,14 @@ * * [Mercury][] * - * [mercury]: http://example.com/mercury/ + * [mercury]: https://example.com/mercury/ * * @example * {"label": "input", "name": "not-ok.md"} * * [Mercury] * - * [mercury]: http://example.com/mercury/ + * [mercury]: https://example.com/mercury/ * @example * {"label": "output", "name": "not-ok.md"} * diff --git a/packages/remark-lint-no-shortcut-reference-link/readme.md b/packages/remark-lint-no-shortcut-reference-link/readme.md index adebd6b5..0b469991 100644 --- a/packages/remark-lint-no-shortcut-reference-link/readme.md +++ b/packages/remark-lint-no-shortcut-reference-link/readme.md @@ -150,7 +150,7 @@ So it’s recommended to use collapsed or full references instead. ```markdown [Mercury][] -[mercury]: http://example.com/mercury/ +[mercury]: https://example.com/mercury/ ``` ###### Out @@ -164,7 +164,7 @@ No messages. ```markdown [Mercury] -[mercury]: http://example.com/mercury/ +[mercury]: https://example.com/mercury/ ``` ###### Out