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

Link Text does not work with ending slash if quotes are omitted. #48

Open
Frozen-byte opened this issue Apr 14, 2023 · 0 comments
Open

Comments

@Frozen-byte
Copy link

Hey, I am using this beautiful library to parse the HTML content from an iCal event into Markdown.

I wondered why
<a href=https://foo.bar/index/>MyIndex</a> converts to [](https://foo.bar/index)MyIndex and I am not sure if this is a bug or not. I am aware that />represent a self-closing tag, yet every browser seems to display the URL correctly.

Is this a bug or "intended" due to malformed HTML (is it even malformed?)

<a href="https://foo.bar/index/">MyIndex</a> and <a href=https://foo.bar/index>MyIndex</a> are working as intended. Sadly there are many scenarios where we are not able to control the HTML source and "healing" the HTML seems like an overkill to me.

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

No branches or pull requests

1 participant