Links

Key Point

💡 Always use inline links.

Use inline links instead of reference.

👍 Correct code for this rule:

[Winter](https://the-winter-is-sparkling-and-frozen.io)

👎 Incorrect code for this rule:

[Winter](#winter)

## Winter
[Winter][winter-info]

[winter-info]: https://the-winter-is-sparkling-and-frozen.io

No ID inner spacing

Do not use inner spaces within link IDs.

remark-lint: no-inline-padding

👍 Correct code for this rule:

The [Winter](https://the-winter-is-sparkling-and-frozen.io) is sparkling and frozen!

[Snowflakes](https://in-the-winter-many-snowflakes-are-falling.io) are falling.

👎 Incorrect code for this rule:

The [Winter]( https://the-winter-is-sparkling-and-frozen.io ) is sparkling and frozen!

[Snowflakes](    https://in-the-winter-many-snowflakes-are-falling.io     ) are falling.

No trailing or leading title spaces

Do not use trailing or leading spaces in link titles.

Add necessary spaces before or after the brackets/braces ([], ()) to format links within flowing text.

👍 Correct code for this rule:

The [Winter](https://the-winter-is-sparkling-and-frozen.io) is sparkling and frozen! [Snowflakes](https://in-the-winter-many-snowflakes-are-falling.io) are falling.

👎 Incorrect code for this rule:

The[ Winter ](https://the-winter-is-sparkling-and-frozen.io)is sparkling and frozen![ Snowflakes ](https://in-the-winter-many-snowflakes-are-falling.io) are falling.

Try to avoid them. If you haev to use, always add a valid protocol when using autolinks.

remark-lint: no-auto-link-without-protocol

👍 Correct code for this rule:

https://example.com

https://www.example.com

http://example.com

http://www.example.com.com
mailto:code@example.com

👎 Incorrect code for this rule:

www.example.com

example.com

Unique IDs

Reference link IDs must be unique within a document file.

remark-lint: no-duplicate-definitions

👍 Correct code for this rule:

[snow](https://snow.io)
[snowflakes](https://snow.io/snowflakes)

Incorrect code for this rule:

[snow](https://snow.io)
[snow](https://snow.io/snowflakes)
Last Updated: 6/20/2019, 2:13:52 PM