This patch makes the

token editable in a settings page. This is to allow interoperability with the PEAR wiki filter that completely refuses to not filter out the current token.

CommentFileSizeAuthor
tableofcontents.patch4.78 KBstarbow

Comments

deviantintegral’s picture

Version: 6.x-2.2 » 6.x-2.x-dev
Status: Needs review » Needs work

Thanks for the patch. It looks to be pretty reasonable. Can you re-roll against the latest -dev branch? I've made some pretty significant changes, mainly implementing settings within each input format. If you could rework this so it fits within that form, and works with more than one input format, I'd be glad to test and commit this.

See #296171: Change Defaults?.

--Andrew

AlexisWilke’s picture

Assigned: Unassigned » AlexisWilke
Status: Needs work » Postponed (maintainer needs more info)

hi starbow,

What is that PEAR wiki does not like about the tag? How do you change it?

I think your patch is dangerous because any user could enter whatever and generate potentially dangerous problems on their system. So what I wanted to do on my end is offer only three possibilities:

[toc ...]
[tableofcontents ...]
<!-- tableofcontents ... -->

The 1st one would certainly be the default. And by offering a module that can remove those tags, I take care of the worry from the first author: a way to remove the TOC module and still not see the [toc ...] tags (although, a process to discover all the tocs would be more promising, I think... but that's a different story!)

Thank you.
Alexis

AlexisWilke’s picture

Version: 6.x-2.x-dev » 6.x-3.x-dev
Status: Postponed (maintainer needs more info) » Fixed

PEAR wiki support was added to version 3.x-dev Jul 5, 2009.

I will not add something in the settings so people can define the tag they want because that's too dangerous. Most people would not be able to enter a regex anyway!

Instead, I'll be happy to add regex'es as needed to the prepare function.

Thank you.
Alexis Wilke

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.