From ecde4a3dede85bfa0fa32a91c51c335716c68c4c Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sat, 12 Oct 2024 18:19:43 +0200 Subject: Change config used by Markdown tests to reflect actual use. This makes the configuration used align better with how it is being used in the mdpost addon. This also reveals some issues that are less than ideal for Markdown posts. The relevant test cases have been adjusted to pass with the new config, but have been commented. --- tests/unit/includes/BBCodeTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/unit/includes/BBCodeTest.php') diff --git a/tests/unit/includes/BBCodeTest.php b/tests/unit/includes/BBCodeTest.php index c6a60f35b..136fc6e0e 100644 --- a/tests/unit/includes/BBCodeTest.php +++ b/tests/unit/includes/BBCodeTest.php @@ -143,6 +143,14 @@ class BBCodeTest extends UnitTestCase { 'example url: https://example.com', 'example url: https://example.com' ], + 'naked url followed by newline' => [ + "https://www.example.com\nhave a great day.", + 'https://www.example.com
have a great day.', + ], + 'inline naked url' => [ + "This is a link https://example.com/some/path more info.", + 'This is a link https://example.com/some/path more info.', + ], 'naked url within code block is not converted to link' => [ "[code]\nhttp://example.com\n[/code]", "
http://example.com
" -- cgit v1.2.3