-
Notifications
You must be signed in to change notification settings - Fork 854
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
[MarkdownViewer] opening an anchor link results in a crash #3094
Comments
Aiming to fix this for the next release, and #2941 seems like the best approach. We'll get that PR passing tests and I think it'll be good to go. |
davep
added a commit
to blob42/textual
that referenced
this issue
Aug 24, 2023
davep
added a commit
to davep/textual
that referenced
this issue
Sep 5, 2023
Tests the problem reported in Textualize#3094
davep
added a commit
to davep/textual
that referenced
this issue
Sep 5, 2023
…wn file Fixes the issue reported in Textualize#3094. There's more to come on this, as rather than just fix that error, we'd also like to go to the header that the anchor relates to. See Textualize#3094 for an initial approach to this. This PR builds on the idea in a different way. But before doing that wider part, this simply starts out by fixing the reported bug.
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With
MarkdownViewer
clicking on any link that has an anchor linkuri/path.md#-someanchor
will raiseFileNotFoundError
.Anchor links are pretty common in markdown and it's not always possible to control the content of the file being read as long as it is valid md. I was thinking this is more of a bug than an enhancement, it should be at least handled by opening the target file properly.
There is #2941 as a fix proposal, I am willing to fix/update the PR as needed.
2023-08-14.10-31-10.mp4
Makrdown file:
The text was updated successfully, but these errors were encountered: