renderHTML was breaking with multiline content