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

Further examples for inline links (empty link text) #636

Closed
jsteuer opened this issue Feb 16, 2020 · 0 comments · Fixed by #637
Closed

Further examples for inline links (empty link text) #636

jsteuer opened this issue Feb 16, 2020 · 0 comments · Fixed by #637

Comments

@jsteuer
Copy link
Contributor

jsteuer commented Feb 16, 2020

The specification says

A link text consists of a sequence of zero or more inline elements enclosed by square brackets ([ and ])

Please add examples that covers some edge cases:

```````````````````````````````` example
[](./target.md)
.
<p><a href="./target.md"></a></p>
````````````````````````````````

```````````````````````````````` example
[]()
.
<p><a href=""></a></p>
````````````````````````````````

Note:

  • This follows the spec and is the current behaviour of the online demo (Quick Link)
  • Empty link texts are useful: some application can lookup and insert the heading of referenced documents for example.
  • Since some parsers are tested against the examples, it would be great to cover this behaviour.

If desired, I can create a pull request.

Thank you!

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

Successfully merging a pull request may close this issue.

1 participant