Skip to content

Commit f2fac3b

Browse files
committed
changed to get content
1 parent b28e039 commit f2fac3b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/Submitty/Twig/Extension/PHPLeagueMarkdownEngine.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(MarkdownConverter $converter = null)
4040
*/
4141
public function transform($content)
4242
{
43-
return $this->converter->convert($content);
43+
return $this->converter->convert($content)->getContent();
4444
}
4545

4646
/**

tests/Submitty/Twig/TokenParser/MarkdownTokenParserTest.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,8 @@ public function testMarkdownPrepareBehavior()
4949
// Assert Markdown output
5050
$expectedOutput = "<h1>Title</h1>\n\n<p>paragraph</p>\n\n<pre><code>code\n</code></pre>\n";
5151
$output = $this->getEngine()->transform($content);
52-
echo $output;
53-
// $this->assertIsString($output,$expectedOutput);
54-
// $this->assertEquals($output, $this->getEngine()->transform($content));
52+
$this->assertIsString($output,$expectedOutput);
53+
$this->assertEquals($output, $this->getEngine()->transform($content));
5554
}
5655

5756
/**

0 commit comments

Comments
 (0)