At present, a lot of HTML is hardcoded into DokuWiki. The example I've come across today is the html_msgarea() call, which does have a div with a class on it, but I wanted to change the HTML generated for it to be a div enclosing a paragraph.
Could DokuWiki start to accept configuration variables for the pre- and post-function HTML in the core, please? There must be lots of places where this pattern occurs.
For example, the default for html_msgarea() would be something like (with whatever is the appropriate naming):
$conf['html']['html_msgarea']['before'] = '<div class="\'.$msg[\'lvl\'].\'">';
$conf['html']['html_msgarea']['after'] = '</div>';
And I'd change mine to something like:
$conf['html']['html_msgarea']['before'] = '<div class="message \'.$msg[\'lvl\'].\'"><p>';
$conf['html']['html_msgarea']['after'] = '</p></div>';
This is a feature I rather like about Wordpress, and it gives users much more control over the way things are rendered in HTML. It could even be a configuration option for each template:
$conf['template']['mytemplate']['html']['html_msgarea']['before'] = '<div class="message \'.$msg[\'lvl\'].\'"><p>';
$conf['template']['mytemplate']['html']['html_msgarea']['after'] = '</p></div>';