-
Notifications
You must be signed in to change notification settings - Fork 28
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
Bug: Invalid link generation when using [Link to Text Fragment] extension #150
Comments
Indeed manually percent-encoding the |
Potentially connected to #115, which likewise is about percent-encoding. |
The requirement for percent-encoding |
Yeah, is weird though -- if you encode the full string (which contains multiple "-" characters) that link doesn't seem to work either, AFAICT (can tell) it seems to explicitly require that some of the "-" are encoded to %2D and some are left as "-"(?) 😐🤔 Anyway, is a bit beyond my level am afraid so will leave it in your capable hands! |
The ones that don’t need encoding are the separators of the prefix and the suffix. See https://web.dev/text-fragments/ for a (hopefully) accessible explanation. |
Issue
The [Link to Text Fragment] extension does not seem to generate the correct text fragment links if the selected text contains "-"
Example
https://imagemagick.org/script/download.php#:~:text=x64-static.exe-,win64%20static%20at%2016%20bits-per-pixel%20component%20with,-high%20dynamic-range
System / Technical Info
The text was updated successfully, but these errors were encountered: