aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2024-02-08 10:00:12 +0100
committerHarald Eilertsen <haraldei@anduin.net>2024-02-08 10:00:12 +0100
commit19ae8cfdfc27578a5f4660993702320ad1e5fac0 (patch)
tree9f05b9cb3799c6adad27bdf18aac5329e5e02973 /tests
parent86e953f49566a0f4bb2220a8e5f4013044f4a49f (diff)
downloadvolse-hubzilla-19ae8cfdfc27578a5f4660993702320ad1e5fac0.tar.gz
volse-hubzilla-19ae8cfdfc27578a5f4660993702320ad1e5fac0.tar.bz2
volse-hubzilla-19ae8cfdfc27578a5f4660993702320ad1e5fac0.zip
Support code blocks with language in markdown and html.
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/includes/MarkdownTest.php4
1 files changed, 4 insertions, 0 deletions
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]&lt;?php\necho phpinfo();[/code]",
+ "```php\n<?php\necho phpinfo();\n```"
+ ],
];
}