Skip to content

Commit a2eeb59

Browse files
Update links.md
1 parent 297d94e commit a2eeb59

File tree

1 file changed

+8
-26
lines changed

1 file changed

+8
-26
lines changed

cheatsheets/markdown/links.md

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -105,23 +105,27 @@ Add optional alternative text. You can hover over the link to see the alt text.
105105

106106
## Reference-style links
107107

108+
Use text or a number or reference a link in the next paragraph or at the end of the page. The full link will not be visible.
109+
108110
### Text
109111

112+
Arbitrary case-insensitive reference text in target. Here we have `Foo bar` but you could use `foo-bar` instead. It is not user-facing.
113+
110114
Example:
111115

112116
**Code:**
113117

114118
```markdown
115-
[I'm a reference-style link][Arbitrary case-insensitive reference text]
119+
[I'm a reference-style link][Foo bar]
116120

117-
[arbitrary case-insensitive reference text]: https://www.mozilla.org
121+
[Foo bar]: https://www.mozilla.org
118122
```
119123

120124
**Result:**
121125

122-
[I'm a reference-style link][Arbitrary case-insensitive reference text]
126+
[I'm a reference-style link][Foo bar]
123127

124-
[arbitrary case-insensitive reference text]: https://www.mozilla.org
128+
[Foo bar]: https://www.mozilla.org
125129

126130
### Numbered refrence links
127131

@@ -141,28 +145,6 @@ Example:
141145

142146
[1]: http://slashdot.org
143147

144-
Another example - note the links might be in a `## Footnotes` section.
145-
146-
147-
**Code**
148-
149-
```markdown
150-
- `AssertionError`: raised in case of failure of an assertion [2].
151-
152-
...
153-
154-
[2]: An AssertionError is an error generated for something that was thought to be impossible to happen. Usually, it is thrown because of a programming error.
155-
```
156-
157-
**Result**
158-
159-
- `AssertionError`: raised in case of failure of an assertion [2].
160-
161-
...
162-
163-
[2]: An AssertionError is an error generated for something that was thought to be impossible to happen. Usually, it is thrown because of a programming error.
164-
165-
166148
### Link text
167149

168150
Example:

0 commit comments

Comments
 (0)