-
Notifications
You must be signed in to change notification settings - Fork 185
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
Fix unescaped special characters in minihtml #2036
Conversation
By looking at the changes I would assume that it's not gonna fix that issue as your change only handles links and title elements and the one in that issue is none of those. |
I can't say for sure without the payload from rust-analyzer, but how do you know that it's not the title element in the linked issue that causes the parsing bug? The label is already properly escaped Line 123 in bd4e014
so I guess the tooltip / title is the only possible cause that is left. |
Because tooltip shows up on hovering the phantom, as tooltips do :) |
And actually tooltip is not rendered using minihtml so shouldn't be escaped. |
But it's already given in the html content when created the phantom. Here: Lines 90 to 95 in bd4e014
There is probably an error in the console with "parsing error", so that ST doesn't want to render the phantom at all. |
Sorry, my bad. The |
Huzzah! It works great! Thanks very much everyone y'all great. |
Make sure special characters like
&
are properly escaped in minihtml content.For example with LSP-html and hover over the link in the following file:
I assume that this might fix #2034, but due to lack of motivation to install Rust + rust-analyzer manually, I have not tested it.
@minerscale If you want, you could give it a try and see if it fixes your issue :)