Bug with special character % in live preview.
OptionalM opened this issue · comments
When a file name contains the percentage symbol (%
)—which is a valid character for a file name—no links in that file get proper styles applied. This is limited to the live preview edit mode.
The culprit seems to be this line here. decodeURI(encodedURI)
throws an error if encodedURI
contains a %
which isn't encoding anything.
Removing decodeURI
(leaving you with linkText = linkText.split("#")[0];
) fixes the problem for me. But there might be negative knock on effects I'm not seeing yet.
Right... That's a regression caused by #157.