mdelobelle / obsidian_supercharged_links

obsidian plugin to add attributes and context menu options to internal links

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug with special character % in live preview.

OptionalM opened this issue · comments

commented

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.

commented

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.