Skip to content

Commit

Permalink
Fixes styling.
Browse files Browse the repository at this point in the history
  • Loading branch information
brendt authored and github-actions[bot] committed Mar 15, 2024
1 parent 8727e9b commit 90230e7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/HighlightCodeBlockRendererTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Tempest\Highlight\CommonMark;

use League\CommonMark\Environment\Environment;
Expand All @@ -18,10 +20,10 @@ public function test_commonmark(): void
$environment
->addExtension(new CommonMarkCoreExtension())
->addExtension(new FrontMatterExtension())
->addRenderer(FencedCode::class, new \Tempest\Highlight\CommonMark\HighlightCodeBlockRenderer());
->addRenderer(FencedCode::class, new HighlightCodeBlockRenderer());

$markdown = new MarkdownConverter($environment);

$parsed = $markdown->convert("```php
class Foo {}
```");
Expand Down

0 comments on commit 90230e7

Please sign in to comment.