Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

js fail with markdown footnote syntax #6

Closed
ConstantMath opened this issue Jun 9, 2017 · 2 comments
Closed

js fail with markdown footnote syntax #6

ConstantMath opened this issue Jun 9, 2017 · 2 comments

Comments

@ConstantMath
Copy link

Hi,
Thanks for this nice script.
I use footnotes generated from markdown.
Classicaly markdown footnotes are generated like this :
<a href="#fn:1" class="footnote-ref">1</a>

..but it fails with your script that uses the querySelectorfunction because of the colon contained in the link.

Uncaught DOMException: Failed to execute 'querySelector' on 'Document': '#fn:1' is not a valid selector.

Any idea how to resolve it ?

Many thanks !

@thomaslule
Copy link
Owner

Hey, thanks for your report

I published an update that should solve your problem! Get the v1.1.1 :)

@ConstantMath
Copy link
Author

Wow, it works.
Thanks a lot Thomas for the quick fix.
All the best.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants