* @group github
 */
class GithubMarkdownTest extends BaseMarkdownTest
{
	public function createMarkdown()
	{
		return new GithubMarkdown();
	}
	public function getDataPaths()
	{
		return [
			'markdown-data' => __DIR__ . '/markdown-data',
			'github-data' => __DIR__ . '/github-data',
		];
	}
	public function testNewlines()
	{
		$markdown = $this->createMarkdown();
		$this->assertEquals("This is text
\nnewline\nnewline.", $markdown->parseParagraph("This is text  \nnewline\nnewline."));
		$markdown->enableNewlines = true;
		$this->assertEquals("This is text
\nnewline
\nnewline.", $markdown->parseParagraph("This is text  \nnewline\nnewline."));
		$this->assertEquals("
This is text
\nnewline
\nnewline.
0
\n", $parser->parse("0")); } }