Note: the handling of <p> seems to have changed, it does double newlines only between paragraphs now (this makes sense to me).