diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2024-02-06 18:39:51 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2024-02-06 18:39:51 +0100 |
commit | ec19ee9d82a9d06e5b86fcb58329767226b0676f (patch) | |
tree | 32cc72b0821b2dafae4cb16dde394b58d0cd590c /tests/unit/includes/MarkdownTest.php | |
parent | 983f063d33efbf2c6fb43c3aa12562b464b2cb9c (diff) | |
download | volse-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/MarkdownTest.php')
-rw-r--r-- | tests/unit/includes/MarkdownTest.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/unit/includes/MarkdownTest.php b/tests/unit/includes/MarkdownTest.php index e05cec6fb..8025e8efa 100644 --- a/tests/unit/includes/MarkdownTest.php +++ b/tests/unit/includes/MarkdownTest.php @@ -69,6 +69,14 @@ class MarkdownTest extends UnitTestCase { '[img=https://example.com/image.jpg]Alt text[/img]', '![Alt text](https://example.com/image.jpg)' ], + 'inline code' => [ + '[code]some code[/code]', + '`some code`' + ], + 'code block no language' => [ + "[code]some code\nover multiple lines[/code]", + "```\nsome code\nover multiple lines\n```" + ], ]; } |