Okay you're right. This seems to be a problem with correct opening and closing of paragraphs. Doku_Handler_Block::process in handler.php seems to be the place were this should be fixed. Any help appreciated.

2005-04-29quaqo

For the first problem (, seems like something wrong with these instructions in the function you suggested:

$this->calls[] = array('p_open',array(), $call[2]);

and

$this->inParagraph = TRUE;

(lines: 1313 and 1329)

I hardly know how DokuWiki's parser is structured... So I can't exactly hack on it. :(

For the second problem (<html> in lists) I don't know where to look at all.

2005-04-30quaqo

Nice. Now it works in lists... :-)
But the paragraphs opening/closing problem still remain...

2005-06-17ChrisS

I am new to looking at this parser, so I don't know the impact of changes ...

however, this bug appears to be solvable by removing 'html' from the array of blockOpen and blockClose tokens in the Doku_Handler_Block class (inc/parser/handler.php - around line #1200).

It also appears to work sensibly when htmlok is set to 0. I say sensibly rather than properly, as the html generated is incorrect (as it was before this fix). The list item generates a span, that span needs to be closed before adding the markup for <file> (which is what <html> is treated as with htmlok=0) and then reopened again.