PegdownTransitionMarkdownRenderParser implements MarkdownParser, MarkdownRenderer, MarkdownProcessor { @Override public Node parseMarkdown(final String markdownContent) { return parser.parse(markdownContent); } PegdownTransitionMarkdownRenderParser(); String markdownToHtml(final Node markdownInput); @Override Node parseMarkdown(final String markdownContent);  }
@Test public void parseMarkdown() { Node result = parser.parseMarkdown("# Hello\n\n*M*arkdown!"); Assert.assertTrue("Expected first element to be a header", result.getFirstChild() instanceof Heading); Assert.assertTrue("Expected last element to be a paragraph", result.getLastChild() instanceof Paragraph); }