Hi folks,
Thanks. I found my way around of mangled HTML (produced by the parser - not the "tidy" - tidy it's off in my wiki)
The solution was to strip all nonmeaningful empty spaces and linebreaks from the HTML. Smarty templates do that by placing template into {strip}{/strip} tags.
It would be nice to have an optional flag in the parser function return value like "verbatim"=true, like there is "noparse" and "isHTML" or simply have "isHTML" automatically suppress insertion of <p><br /></p>.
Best, Evgeny.