xpgo / obsidian-folder-note-plugin

Plugin to add description note to a folder for Obsidian.
385 stars 27 forks source link

folder brief images break when path has apostrophe #88

Open jericjan opened 9 months ago

jericjan commented 9 months ago

Basically, the CSS turns out like this:

background-image: url(app://10b7a07ec12e16844f982aa5d5bc4355d44c/C:/path/to/vault with '/image.png?1702049886735);

which leads to an invalid property value error in Devtools. The fix would be to escape the apostrophes like this:

background-image: url(app://10b7a07ec12e16844f982aa5d5bc4355d44c/C:/path/to/vault with \'/image.png?1702049886735);