As I see it is a premium plugin so we cannot add support on that directly.
Looking at the HTML our plugin cannot detect that the links include a span, so don’t see a link and add their links.
The best way can be wrap the Fixed toc with our shortcode https://codeat.co/glossary/docs/ignore-terms-inside-the-content-pro/ available in the PRO version.
Daniele:
Thank you for your correspondence on this issue. We worked with the support rep from Fixed TOC on the fix, and were able to work around the issue.
FYI, his comment to us, which is really for you, is as follows (quoting him): “it’s not right to insert a link in a link. It’s better to ask the author how to exclude embedding in links.”
Feel free to use this however you you choose. I am providing this not to complain, but to contribute. Both of your plugins are important to our platform, and we want them to be as strong as they can be.
Thanks again for your fast response.
Hi mdavid1, thanks for your interest.
The issue is more from the other plugin side because is injecting inside an anchor tag a span and is an uncommon behavior. Usually anchors are wrapped but don’t include span or div as example.
Our plugin can detect if the term is wrapped in a link but not if it is inside a tag HTML that is inside to a link.
The a element may be wrapped around entire paragraphs, lists, tables, and so forth, even entire sections, so long as there is no interactive content within (e.g. buttons or other links). See the HTML specification: https://html.spec.whatwg.org/dev/text-level-semantics.html#the-a-element
Maybe you should think about these cases, thanks.
Yes I know, but we are using a regular expression and for performance reasons we chosen to add the most common.
I can do some tests and see if we can improve with more tags.