XRENDERING-258: Convert Pegdown AST to an XDOM instead of relying on the Pegdown HTML renderer
* Fixed all checkstyle errors + regression introduced in previous commit