WP Discourse HTML Format not carried over

The only way you can control the HTML output of posts in Discourse is via a plugin or theme in Discourse itself. Allowed HTML tags and attributes are tightly controlled for security and UX reasons.