Re: [pmwiki-users] Numbered Sections cookbook recipe

2019-11-13 Thread Petko Yotov
On 13/11/2019 15:56, Petko Yotov wrote: Core numbered headings currently depend on the table of contents, but that should be refactored to become an independent function. Now, if the sections are less than 3 (configurable), there is no TOC and the headings are not numbered. For the next

Re: [pmwiki-users] Numbered Sections cookbook recipe

2019-11-13 Thread Hans-Jürgen Godau
thank you. I will consider the new core feature, so maybe the recipe is made superfluous for me. Am Mi., 13. Nov. 2019 um 15:56 Uhr schrieb Petko Yotov <5...@5ko.fr>: > Thanks for sharing this. > > > $prefix=PSS($m[1]); > > $text=PSS($m[2]); > > You need to remove the PSS() calls from the new

Re: [pmwiki-users] Numbered Sections cookbook recipe

2019-11-13 Thread Petko Yotov
Thanks for sharing this. $prefix=PSS($m[1]); $text=PSS($m[2]); You need to remove the PSS() calls from the new version. PSS() strips one level of backslashes. It was previously needed in markup replacements because preg_replace() with /eval added one level of backslashes. The new PHP