parse('
| Item | Price |
|---|---|
| Something | $ 472,78 |
| Another entry | € 111 |
| | |
| Total | A lot |');
self::assertStringStartsWith('
', $html);
}
public function testHeaderContainsId(): void
{
$sut = new Parsedown();
$html = $sut->parse('
# Foo
');
self::assertEquals('Foo
', $html);
}
public function testHeaderContainsIdDoesNotDuplicate(): void
{
$sut = new Parsedown();
$html = $sut->parse('
# Foo
# Foo
# Foo
');
self::assertEquals('Foo
Foo
Foo
', $html);
}
}