Looks like you copy/pasted the example code into the WordPress post editor while in the HTML tab. This will also paste the underlying HTML.
To fix that, you need to edit the page, switch the editor to the Text tab and delete the HTML that is in and around the shortcode. Specifically any
pre tags. After you do, that fix it up.
Hope that helps.