How could I write a filter to create a wiki-like contents section just by wrapping needed section headers with "=="? For example, if I had:
== Section 1 ==
Contents of section 1...
== Section 2 ==
Contents of section 2...
== Section 3 ==
Contents of section 3...
The filter should produce three links on top of the node with anchors to these sections.
It would be great if it also could handle nested sections.
Comments
Comment #1
cwgordon7 commentedI'm sorry, this seems a bit out of scope for flexifilter core at the moment. There is already a table of contents module, if that's what you're looking for, but this kind of highly specific feature request cannot be accepted in flexifilter core. You, and/or anyone else, are invited to make a contributed module that works under the flexifilter framework, especially as there is already another module that does this. Perhaps this could be created as a DROP task?