BUG: fragment_link
doesn't URL-escape text-fragments correctly
#304
Labels
bug
Something isn't working
fragment_link
doesn't URL-escape text-fragments correctly
#304
Version (please complete the following information):
0.10.5
1.7.7
Describe the bug
On this website: https://en.m.wikipedia.org/wiki/Mel-frequency_cepstrum highlight the following paragraph
and apply this Template:
The resulting Markdown in Obsidian looks as follows (I've manually added newlines here for error readability)
The
fragment_link
filter did not URL-escape the closing parenthesis in the text fragmentHence, the Markdown URL is https://en.m.wikipedia.org/wiki/Mel-frequency_cepstrum#:~:text=There%20can%20be%20variations%20on,and%20second-order%20frame-to-frame%20difference with trailing
%20coefficients.)
rendered as plaintext, outside of the URL.Expected behavior
The rendered URL should look like (using full text highlighting too, not "skipping" content as the
fragment_link
filter currently does):https://en.m.wikipedia.org/wiki/Mel-frequency_cepstrum#:~:text=There%20can%20be%20variations%20on%20this%20process%2C%20for%20example:%20differences%20in%20the%20shape%20or%20spacing%20of%20the%20windows%20used%20to%20map%20the%20scale%2C[4]%20or%20addition%20of%20dynamics%20features%20such%20as%20%22delta%22%20and%20%22delta%2Ddelta%22%20(first%2D%20and%20second%2Dorder%20frame%2Dto%2Dframe%20difference)%20coefficients.
This renders nicely as a Markdown link as:
link
The text was updated successfully, but these errors were encountered: