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.

CommentFileSizeAuthor
#2 geshi.png10.44 KBno2e

Comments

AlexisWilke’s picture

There 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

no2e’s picture

StatusFileSize
new10.44 KB

Hm, GeSHi filter is the first. It looks like:

  • GeSHi filter
  • URL filter
  • Line break converter
  • HTML corrector
  • Table of contents

Made a screenshot of the "glitch" (in attachments).

  • HTML-Formulare (
    is linked to the heading (anchor)
  • <form
    is linked to the HTML reference (extern)
  • >)
    is not linked at all