Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update markdown.md #2034

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update markdown.md #2034

wants to merge 1 commit into from

Conversation

Gogiu23
Copy link

@Gogiu23 Gogiu23 commented Aug 12, 2023

i change how to iclude img in markdown because in the way was made doesn't work

@syntax-tm
Copy link

Purpose

This example is a single reference-style image. The [img] at the end of the line is the link label. That link label refers to a link reference definition that can be found on the second line.

![Image alt text][img]
[img]: http://foo.com/img.jpg

Proposed Changes

With your changes the first line is no longer valid because the link label img no longer has a matching reference definition.

![Image alt text][img]

The second line is just an inline image whose alt text will be set to img.

![img](https://foo.com/img.jpg)

So, this example of a reference-style link is now an invalid link since no matching definition exists and the second line is just a duplicate example of inline syntax.

The Fix

A reference link is comprised of the link text and the link label. That link label references a link reference definition located "elsewhere in the document."

![Image alt text][img]

[img]: http://foo.com/img.jpg

Basically, you just need to add at least one empty line between the image and the link definition.

Example

GitHub Logo

![GitHub Logo][github_logo_2]

[github_logo_2]: https://github.githubassets.com/images/modules/logos_page/GitHub-Logo.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants