I use this module to hightlight source code: http://drupal.org/project/geshifilter
I got the following heading:
<h3>
All about <html><form></html>
</h3>
(the tag between the two <html> tags gets highlighted and automitcally linked to http://december.com/html/4/element/form.html.
Now, it displays the heading correctly, but inside the Table of Contents, it's not display correct.
It doesn't close the last bracket correctly, and so only the following is linked/highlighted: <form but not the closing >.
Anyway, I think it shouldn't be highlighted at all in the ToC.
Comments
Comment #1
AlexisWilke commentedThere won't be any way for the TOC module to know about those special tags, therefore, you must run the geshifilter before the TOC filter. (in your Input formats, you need to Rearrange the order)
The anchors will be removed in the TOC itself, but it will not remove highlights if the geshifilter adds colors with a span. However, you can tweak a CSS to do that since those span will appear inside the TOC that has a specific class/ID.
Thank you.
Alexis Wilke
Comment #2
no2e commentedHm, GeSHi filter is the first. It looks like:
Made a screenshot of the "glitch" (in attachments).
HTML-Formulare (is linked to the heading (anchor)
<formis linked to the HTML reference (extern)
>)is not linked at all