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: content/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax.md
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -109,25 +109,26 @@ You can display an image starting by adding `!` and wrapping the alt text in`[ ]
109
109
110
110
![Image by the user]()
111
111
112
-
{% data variables.product.product_name %} supports embedding images into your issues, pull requests{% ifversion fpt %}, discussions{% endif %}, comments and `.md` files. You can either add an image to your repository, add a link to an image or upload an image. For more information, see "[Uploading assets](#uploading-assets)."
112
+
{% data variables.product.product_name %} supports embedding images into your issues, pull requests{% ifversion fpt %}, discussions{% endif %}, comments and `.md` files. You can add an image to your repository, add a link to an image, or upload an image. For more information, see "[Uploading assets](#uploading-assets)."
113
113
114
114
{% tip %}
115
115
116
116
**Tip:** When you want to link a image which is in your repository, it is recommended that you use relative links instead of absolute links.
117
117
118
118
When linking an image from a different repository,
119
-
obtain raw link of the image from **Download** page of the image.
119
+
obtain the raw link of the image from the **Download** page for the image.
120
120
121
121
{% endtip %}
122
122
123
-
Example : If you want to use an image that is in the docs repository, you can use the relative link to display the image in a `.md` file in the same repository. If you want to link an image in an issue, pull request or a comment, use the raw link obtained from **Download** on the image page. You can use the same method for linking an image in an `.md` file from a different repository.
123
+
For example, if you want to use an image that is in the same repository as your `.md` file, you can use a relative link for the image in a `.md` file. If you want to link an image in an issue, pull request, or a comment, use the raw link obtained from **Download** on the image page. You can use the same method for linking an image in an `.md` file from a different repository.
124
124
125
-
| Context | Relative Link|
125
+
| Context | Relative link|
126
126
| ------ | -------- |
127
127
| In a `.md` file on the same branch |`/assets/images/electrocat.png`|
128
-
| In a `.md` file on another branch |`/../docs/assets/images/electrocat.png`|
129
-
| In Issues,Pull Requests & comments of the repository |`(https://raw.githubusercontent.com/github/docs/main/assets/images/electrocat.png)`|
130
-
| In `.md` file on another repository |`https://raw.githubusercontent.com/github/docs/main/assets/images/electrocat.png`|
128
+
| In a `.md` file on another branch |`/../main/assets/images/electrocat.png`|
129
+
| In issues, pull requests and comments in any repository |`https://raw.githubusercontent.com/github/docs/main/assets/images/electrocat.png`|
130
+
| In a `.md` file in another repository |`https://raw.githubusercontent.com/github/docs/main/assets/images/electrocat.png`|
131
+
131
132
For more information see "[Relative Links](#relative-links)."
0 commit comments