You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _basic-syntax/links.md
+30-3
Original file line number
Diff line number
Diff line change
@@ -140,7 +140,7 @@ and the HTML for the link would be:
140
140
141
141
### Link Best Practices
142
142
143
-
Markdown applications don't agree on how to handle spaces in the middle of a URL. For compatibility, try to URL encode any spaces with `%20`. Alternatively, if your Markdown application [supports HTML](#html), you could use the `a` HTML tag.
143
+
Markdown applications don't agree on how to handle spaces or parentheses in the middle of a URL. For compatibility, try to URL encode any spaces with `%20`. Alternatively, if your Markdown application [supports HTML](#html), you could use the `a` HTML tag.
144
144
145
145
<tableclass="table table-bordered">
146
146
<theadclass="thead-light">
@@ -155,12 +155,39 @@ Markdown applications don't agree on how to handle spaces in the middle of a URL
<a href="https://www.example.com/my great page">link</a>
158
+
<a href="https://www.example.com/my great page">link</a><br><br>
159
159
</code>
160
160
</td>
161
161
<td>
162
162
<code class="highlighter-rouge">
163
-
[link](https://www.example.com/my great page)
163
+
[link](https://www.example.com/my great page)<br><br>
164
+
</code>
165
+
</td>
166
+
</tr>
167
+
</tbody>
168
+
</table>
169
+
170
+
Parentheses in the middle of a URL can also be problematic. For compatibility, try to URL encode the opening parenthesis (`(`) with `%28` and the closing parenthesis (`)`) with `%29`. Alternatively, if your Markdown application [supports HTML](#html), you could use the `a` HTML tag.
0 commit comments