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

crash when clicking on an empty link #163

Open
vpenades opened this issue Nov 6, 2024 · 2 comments
Open

crash when clicking on an empty link #163

vpenades opened this issue Nov 6, 2024 · 2 comments

Comments

@vpenades
Copy link

vpenades commented Nov 6, 2024

A markdown like declared like this:

[Empty Link]()

Is displayed correctly, but when clicked, it crashes with this exception:

System.InvalidOperationException: 'Cannot start process because a file name has not been provided.'

Avalonia: 11.2.0
Markdown.Avalonia.Tight: 11.0.2

@IhateTrains
Copy link
Contributor

You should probably update the description with the Avalonia version and the Markdown.Avalonia version.

@vpenades
Copy link
Author

I've updated the issue.

Additional context:

Given that an application may open markdown files from unknown sources and potentially malformed or incomplete, it would be expected that clicking on a link with an empty URL results in no action performed instead of throwing an exception.

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

2 participants