samwho / obsidian-wikidata-importer

A plugin for importing data from Wikidata into your Obsidian vault.
MIT License
25 stars 6 forks source link

Can create file with illegal character. #6

Open bubonicfred opened 8 months ago

bubonicfred commented 8 months ago

I've noticed that most entities with illegal characters (Say /) bring up an error, which is good. However if the entity has a # (say from C#) it creates the file.

samwho commented 8 months ago

Does having a # in the file name cause problems?

I should really strip the characters that cause errors, too.

bubonicfred commented 8 months ago

Yeh, you can't link to it as it assumes you are trying to link to a heading of file that doesn't have the #. Usually I can't even create a file with a # in it.

samwho commented 8 months ago

Ahh of course, that makes sense. Thanks for the report! I don't know when I'll be able to make the time to fix this, unfortunately.