From 19ae8cfdfc27578a5f4660993702320ad1e5fac0 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Thu, 8 Feb 2024 10:00:12 +0100 Subject: Support code blocks with language in markdown and html. --- tests/unit/includes/MarkdownTest.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/unit/includes/MarkdownTest.php b/tests/unit/includes/MarkdownTest.php index 87cfc2899..960c15139 100644 --- a/tests/unit/includes/MarkdownTest.php +++ b/tests/unit/includes/MarkdownTest.php @@ -89,6 +89,10 @@ class MarkdownTest extends UnitTestCase { "[code]some code\n over multiple lines\n with indentation[/code]", "```\nsome code\n over multiple lines\n with indentation\n```" ], + 'code block with language' => [ + "[code=php]<?php\necho phpinfo();[/code]", + "```php\n