Skip to content

Commit ec44f79

Browse files
authored
Renderer should support Stringable interface.
1 parent afc5913 commit ec44f79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/CommonMarkRenderer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ public function __construct(
2525
}
2626

2727

28-
public function render(string $content): string
28+
public function render(string|\Stringable $content): string
2929
{
30+
$content = (string) $content;
3031
static $cache = [];
3132
if (isset($cache[$content]) === false) {
3233
$html = $this->process(

0 commit comments

Comments
 (0)