I have been trying to write an extension including some tags like 'section'. However, when trying to nest these, I cannot do anything but conclude that MW's tag detection does not support nested tags.
Suppose I use the following code:
<section name="name">This is a test <section name="sub">What should be a subsection</section> Some further text </section>
The output generated then becomes of the following kind
start sample output
Section
This is a test
Section
What should be a subsection
Some further text
end sample output
I am using calls to recursiveTagParse to support this kind of tag nesting, but it appears (also when checking with the PHP function print_r the text that is sent to the parsing function) that the detection of tags is fundamentally flawed.
The current versions used are:
- MW: 1.18.1
- PHP: 5.3.10
- MySQL: 5.5.20