Skip to content

Commit

Permalink
Refactor to remove http: where possible
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jan 13, 2025
1 parent f684cff commit e8e1ac1
Show file tree
Hide file tree
Showing 23 changed files with 165 additions and 165 deletions.
8 changes: 4 additions & 4 deletions packages/remark-lint-correct-link-syntax/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
*
Expand Down
8 changes: 4 additions & 4 deletions packages/remark-lint-correct-link-syntax/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions packages/remark-lint-definition-case/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand Down
6 changes: 3 additions & 3 deletions packages/remark-lint-definition-case/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion packages/remark-lint-definition-sort/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"author": "Titus Wormer <[email protected]> (https://wooorm.com)",
"contributors": [
"Titus Wormer <[email protected]> (https://wooorm.com)"
"Titus Wormer <[email protected]>"
],
"sideEffects": false,
"type": "module",
Expand Down
14 changes: 7 additions & 7 deletions packages/remark-lint-definition-spacing/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

/**
Expand Down
14 changes: 7 additions & 7 deletions packages/remark-lint-definition-spacing/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -164,29 +164,29 @@ 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`

###### 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
Expand Down
14 changes: 7 additions & 7 deletions packages/remark-lint-final-definition/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/
*
* <!-- HTML comments in markdown are ignored. -->
*
* [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"}
Expand Down
14 changes: 7 additions & 7 deletions packages/remark-lint-final-definition/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ If you prefer that, turn on this rule.
```markdown
Mercury.

[venus]: http://example.com
[venus]: https://example.com
```

###### Out
Expand All @@ -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
Expand All @@ -176,11 +176,11 @@ No messages.
```markdown
Mercury.

[venus]: http://example.com/venus/
[venus]: https://example.com/venus/

<!-- HTML comments in markdown are ignored. -->

[earth]: http://example.com/earth/
[earth]: https://example.com/earth/
```

###### Out
Expand All @@ -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
Expand Down
42 changes: 21 additions & 21 deletions packages/remark-lint-link-title-style/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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"␠).
*/

/**
Expand Down
Loading

0 comments on commit e8e1ac1

Please sign in to comment.