On Wed, 28 Feb 2007 10:08:26 -0500, Travis Derouin wrote:
Hi,
Is there a function that already exists in the codebase that returns the # of sections in an article? I can't seem to find it.
The problem is that there are two syntaxes for sections. The parser determines the number of sections by converting wiki sections to HTML syntax, then counting the HTML sections.
So the most accurate count is available at that stage of the parsing.