File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -236,4 +236,18 @@ public function testLinksWorkInsideAlert()
236236 $ this ->assertStringContainsString ('<p class="markdown-alert-title">Note</p> ' , $ result );
237237 $ this ->assertStringContainsString ('<p>Visit <a href="/docs">Docs</a>.</p> ' , $ result );
238238 }
239+
240+ public function testBoldAndItalicWorkInsideAlert ()
241+ {
242+ $ markdown = <<<MARKDOWN
243+ > [!NOTE]
244+ > This is *italic* and **bold** text.
245+ MARKDOWN ;
246+
247+ $ result = $ this ->parsedownExtended ->text ($ markdown );
248+
249+ $ this ->assertStringContainsString ('<div class="markdown-alert markdown-alert-note"> ' , $ result );
250+ $ this ->assertStringContainsString ('<p class="markdown-alert-title">Note</p> ' , $ result );
251+ $ this ->assertStringContainsString ('<p>This is <em>italic</em> and <strong>bold</strong> text.</p> ' , $ result );
252+ }
239253}
You can’t perform that action at this time.
0 commit comments