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

Markdown: Close anchor tags correctly #38619

Merged
merged 1 commit into from
Jun 30, 2020

Conversation

xtqqczze
Copy link
Contributor

Replace self-closing html anchor tags in markdown as this is not valid html.

This resolves some false positive linter warnings (#38549) and fixes breakage in vscode markdown preview.

@xtqqczze
Copy link
Contributor Author

@stephentoub can you review?

@danmoseley
Copy link
Member

Hm, TIL that HTML has rules 😄 it seems indeed that self closing is only allowed for "void elements" (a small list that doesn't include <a>) https://html.spec.whatwg.org/multipage/syntax.html#start-tags

The only value of this change I guess would be to enable a linter without disabling this particular warning. I guess that's fine. Thanks.

@danmoseley danmoseley merged commit 4fdf9ff into dotnet:master Jun 30, 2020
@xtqqczze xtqqczze deleted the md-close-anchor branch June 30, 2020 17:43
@ghost ghost locked as resolved and limited conversation to collaborators Dec 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants