How to embed Discourse comments as HTML (not iframe) with a Canonical URL?

This has been asked before but I am not aware of an out of the box way to do this. Perhaps you could do something with RSS feeds, or the API directly?