shabegom / obsidian-reference-count

Show Reference Count of Block Refs
65 stars 6 forks source link

Heading reference won't work if heading contains a special character #38

Closed Cheloggs closed 3 years ago

Cheloggs commented 3 years ago

0.1.4

Obsidian supports special characters in headings and links to headings, but your plugin won't work with headings that do contain some special characters, in my particular case '. I do understand this is a minor issue in english but some languages make extensive use of '.

I hope this is clear enough, and thank you for your awesome plug in!

EDIT: Also the + character breaks it

shabegom commented 3 years ago

Thanks for reporting @Cheloggs! It's been a challenge to capture all the different characters in headings. I'm releasing 0.1.5 which should now grab + and ' and hopefully more!

Cheloggs commented 3 years ago

Thanks for reporting @Cheloggs! It's been a challenge to capture all the different characters in headings. I'm releasing 0.1.5 which should now grab + and ' and hopefully more!

Thank you for this ready update! I have to report back that 0.1.5 has fixed the + character but not the ' character on my side.

shabegom commented 3 years ago

Hm, It is working with straight quotes ('). Are you perhaps using a curly quote? Or is that not a quote character?

shabegom commented 3 years ago

the next release will handle curly quotes as well as straight. Thanks!

shabegom commented 3 years ago

Totally rewrote how headings are handled. Should support any character you throw at it!