From b4bac88c39c6bc6a0533114351ab9f5493aa46c9 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Tue, 30 Oct 2018 22:37:41 +0100 Subject: fix markdown tests --- tests/unit/includes/MarkdownTest.php | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'tests/unit') diff --git a/tests/unit/includes/MarkdownTest.php b/tests/unit/includes/MarkdownTest.php index c1408b303..654fbd4c7 100644 --- a/tests/unit/includes/MarkdownTest.php +++ b/tests/unit/includes/MarkdownTest.php @@ -55,7 +55,7 @@ class MarkdownTest extends UnitTestCase { 'strong, b, em, i, bib' => [ 'strong bold em italic boitalicld', - '**strong** **bold** _em_ _italic_ **bo_italic_ld**' + '**strong** **bold** *em* *italic* **bo*italic*ld**' ], 'empty tags' => [ @@ -70,10 +70,6 @@ class MarkdownTest extends UnitTestCase { '& lt < gt >', '& lt < gt >' ], - 'our escaped HTML entities' => [ - '&_lt_; &_gt_; &_amp_;', - '&\_lt\_; &\_gt\_; &\_amp\_;' - ], 'linebreak' => [ "line1
line2\nline3", "line1 \nline2 line3" @@ -84,15 +80,15 @@ class MarkdownTest extends UnitTestCase { ], 'unordered list' => [ '', - "- Item 1\n- Item 2\n- Item 3" + "- Item 1\n- Item 2\n- Item **3**" ], 'ordered list' => [ '
  1. Item 1
  2. Item 2
  3. Item 3
', - "1. Item 1\n2. Item 2\n3. Item 3" + "1. Item 1\n2. Item 2\n3. Item **3**" ], 'nested lists' => [ '', - "- Item 1\n 1. Item 1a\n 2. Item 1b\n- Item 2" + "- Item 1\n 1. Item 1a\n 2. Item **1b**\n- Item 2" ], 'img' => [ 'alt text', @@ -118,12 +114,10 @@ class MarkdownTest extends UnitTestCase { '<p>HTML text</p>', '`

HTML text

`' ], - 'pre' => [ - '
   line with  spaces   
', - '` line with spaces `' + '
  one line with spaces  
', + '```\n one line with spaces \n```' ], - 'div p' => [ '
div

p

', "
div
p\n\n
" -- cgit v1.2.3