disable headings in markdown (#1843)

This commit is contained in:
Kevin Papst
2020-07-26 21:06:33 +02:00
committed by GitHub
parent 6bd2390acf
commit 6f8c0e3cb6
4 changed files with 41 additions and 10 deletions

View File

@@ -38,7 +38,7 @@ class MarkdownExtensionTest extends TestCase
$config = new TimesheetConfiguration($loader, ['markdown_content' => true]);
$sut = new MarkdownExtension(new Markdown(), $config);
$this->assertEquals('<p><em>test</em></p>', $sut->markdownToHtml('*test*'));
$this->assertEquals('<h1 id="foobar">foobar</h1>', $sut->markdownToHtml('# foobar'));
$this->assertEquals('<p># foobar</p>', $sut->markdownToHtml('# foobar'));
}
public function testTimesheetContent()