@@ -26,7 +26,7 @@ public class MarkdownTest {
2626 public void testBoldText () {
2727
2828 String markdown = "This is **bold**!" ;
29- String html = Markdown .transformer (). partialDocument ().transform (markdown );
29+ String html = Markdown .partialDocument ().transform (markdown );
3030
3131 assertEquals ("<p>This is <strong>bold</strong>!</p>" , html );
3232
@@ -36,7 +36,7 @@ public void testBoldText() {
3636 public void testHeaders () {
3737
3838 String markdown = "# Header\n \n ##Section\n \n Some text!" ;
39- String html = Markdown .transformer (). partialDocument ().transform (markdown );
39+ String html = Markdown .partialDocument ().transform (markdown );
4040
4141 assertEquals ("<h1 id='header'>Header</h1><h2 id='section'>Section</h2><p>Some text!</p>" , normalize (html ));
4242
@@ -46,7 +46,7 @@ public void testHeaders() {
4646 public void testBlockquote () {
4747
4848 String markdown = "> Some quote" ;
49- String html = Markdown .transformer (). partialDocument ().transform (markdown );
49+ String html = Markdown .partialDocument ().transform (markdown );
5050
5151 assertEquals ("<blockquote><p>Some quote</p></blockquote>" , normalize (html ));
5252
@@ -56,7 +56,7 @@ public void testBlockquote() {
5656 public void testLists () {
5757
5858 String markdown = "* One\n * Two" ;
59- String html = Markdown .transformer (). partialDocument ().transform (markdown );
59+ String html = Markdown .partialDocument ().transform (markdown );
6060
6161 assertEquals ("<ul><li>One</li><li>Two</li></ul>" , normalize (html ));
6262
@@ -66,7 +66,7 @@ public void testLists() {
6666 public void testCode () {
6767
6868 String markdown = " private int n = 0;" ;
69- String html = Markdown .transformer (). partialDocument ().transform (markdown );
69+ String html = Markdown .partialDocument ().transform (markdown );
7070
7171 assertEquals ("<pre><code>private int n = 0;</code></pre>" , normalize (html ));
7272
@@ -76,7 +76,7 @@ public void testCode() {
7676 public void testFullHtmlDocument () {
7777
7878 String markdown = "some text" ;
79- String html = Markdown .transformer (). fullDocument ().transform (markdown );
79+ String html = Markdown .fullDocument ().transform (markdown );
8080
8181 assertTrue ("DOCTYPE is missing" , html .contains ("<!DOCTYPE html PUBLIC" ));
8282 assertTrue ("html tag is missing" , html .contains ("<html" ));
0 commit comments