aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/includes/MarkdownTest.php
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2024-02-06 16:23:39 +0100
committerHarald Eilertsen <haraldei@anduin.net>2024-02-06 16:23:39 +0100
commit983f063d33efbf2c6fb43c3aa12562b464b2cb9c (patch)
treeca8c4060486ca7b1ef28eaf3fc441c5ea2b4f343 /tests/unit/includes/MarkdownTest.php
parenteb6a143fffba5a796945a425b289e95f7bd28d00 (diff)
downloadvolse-hubzilla-983f063d33efbf2c6fb43c3aa12562b464b2cb9c.tar.gz
volse-hubzilla-983f063d33efbf2c6fb43c3aa12562b464b2cb9c.tar.bz2
volse-hubzilla-983f063d33efbf2c6fb43c3aa12562b464b2cb9c.zip
Fix image with alt text for html/md to bbcode
Diffstat (limited to 'tests/unit/includes/MarkdownTest.php')
-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 71f13cdb0..e05cec6fb 100644
--- a/tests/unit/includes/MarkdownTest.php
+++ b/tests/unit/includes/MarkdownTest.php
@@ -65,6 +65,10 @@ class MarkdownTest extends UnitTestCase {
'[img=https://example.com/image.jpg]https://example.com/image.jpg[/img]',
'![](https://example.com/image.jpg)'
],
+ 'inline image with alt text' => [
+ '[img=https://example.com/image.jpg]Alt text[/img]',
+ '![Alt text](https://example.com/image.jpg)'
+ ],
];
}