Skip to content
This repository has been archived by the owner on Jul 1, 2023. It is now read-only.

Commit

Permalink
add markdown => markdown test
Browse files Browse the repository at this point in the history
  • Loading branch information
fredemmott committed Mar 29, 2018
1 parent 93818dc commit 75bf4df
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions tests/SpecTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ public function testSpecExampleNormalizesWithoutHTMLChange(
string $expected_html,
?string $extension,
): void {
$this->markTestIncomplete('Still a work in progress');
$parser_ctx = (new ParserContext())
->enableHTML_UNSAFE()
->disableExtensions();
Expand All @@ -104,16 +103,9 @@ public function testSpecExampleNormalizesWithoutHTMLChange(
$parser_ctx->enableNamedExtension($extension);
$render_ctx->enableNamedExtension($extension);
}

$ast = parse($parser_ctx, $original_md);
$normalized_md = (new MarkdownRenderer($render_ctx))->render($ast);
print("--- ORIGINAL ---\n");
print($original_md."\n");
print("--- NORMALIZED ---\n");
print($normalized_md."\n");
print("--- ORIGINAL AST ---\n");
\var_dump($ast);
print("--- END ---\n");

$normalized_ast = parse($parser_ctx, $normalized_md);
$actual_html = (new HTMLRenderer($render_ctx))->render($normalized_ast);

Expand Down

0 comments on commit 75bf4df

Please sign in to comment.