mix markdown with HTML more correctly