aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/includes/BBCodeTest.php
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2024-02-06 18:39:51 +0100
committerHarald Eilertsen <haraldei@anduin.net>2024-02-06 18:39:51 +0100
commitec19ee9d82a9d06e5b86fcb58329767226b0676f (patch)
tree32cc72b0821b2dafae4cb16dde394b58d0cd590c /tests/unit/includes/BBCodeTest.php
parent983f063d33efbf2c6fb43c3aa12562b464b2cb9c (diff)
downloadvolse-hubzilla-ec19ee9d82a9d06e5b86fcb58329767226b0676f.tar.gz
volse-hubzilla-ec19ee9d82a9d06e5b86fcb58329767226b0676f.tar.bz2
volse-hubzilla-ec19ee9d82a9d06e5b86fcb58329767226b0676f.zip
Fix convert code blocs from markdown/html to bbcode
Diffstat (limited to 'tests/unit/includes/BBCodeTest.php')
-rw-r--r--tests/unit/includes/BBCodeTest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/unit/includes/BBCodeTest.php b/tests/unit/includes/BBCodeTest.php
index 9e9b1a33b..54c35e67d 100644
--- a/tests/unit/includes/BBCodeTest.php
+++ b/tests/unit/includes/BBCodeTest.php
@@ -41,6 +41,10 @@ class BBCodeTest extends UnitTestCase {
'<img src="https://example.com/image.jpg" alt="Alt text">',
'[img=https://example.com/image.jpg]Alt text[/img]'
],
+ 'code block' => [
+ "<pre><code>some\ncode</code></pre>",
+ "[code]some\ncode[/code]"
+ ],
];
}
}