From b8b322c04b93358ace06d2687d340e45a0fe15a8 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Wed, 20 Jul 2016 17:01:52 -0400 Subject: PLT-3482/PLT-3551/PLT-3552 Fixed some markdown list parsing (#3637) * PLT-3552 Partially-fixed an invalid test case * PLT-3551 Removed an invalid test case * PLT-3482 Added a test case for multiple lists separated by text * PLT-3482 Updated marked to fix multiple lists separated by text --- tests/test-markdown-lists.md | 50 ++++++++++++++++++++------------------------ 1 file changed, 23 insertions(+), 27 deletions(-) (limited to 'tests') diff --git a/tests/test-markdown-lists.md b/tests/test-markdown-lists.md index c60b0eb89..f363fe034 100644 --- a/tests/test-markdown-lists.md +++ b/tests/test-markdown-lists.md @@ -1,7 +1,7 @@ # Markdown List Testing Verify that all list types render as expected. -### Single-item Ordered List +### Single-Item Ordered List **Expected:** ``` @@ -11,7 +11,7 @@ Verify that all list types render as expected. **Actual:** 7. Single Item -### Multi-item Ordered List +### Multi-Item Ordered List **Expected:** ``` @@ -47,7 +47,7 @@ Verify that all list types render as expected. 1. Echo 1. Foxtrot -### Single-item Unordered List +### Single-Item Unordered List **Expected:** ``` @@ -57,7 +57,7 @@ Verify that all list types render as expected. **Actual:** * Single Item -### Multi-item Unordered List +### Multi-Item Unordered List **Expected:** ``` @@ -179,39 +179,20 @@ Verify that all list types render as expected. 1. One 2. Two -### Carriage Return and New Line After a List +### New Line After a List **Expected:** ``` 1. One -- Two +2. Two This text should be on a new line. ``` **Actual:** 1. One -- Two - This text should be on a new line. - -**Expected:** -``` -List: - -- One -- Two - -This line should have a line break above it. -``` - -**Actual:** - -List: - -- One -- Two - -This line should have a line break above it. +2. Two +This text should be on a new line. ### Task Lists @@ -246,3 +227,18 @@ This line should have a line break above it. 1. [ ] One 2. [ ] Two 3. [x] Completed item + +### Multiple Lists + +**Expected:** +``` +List A: +1. One +List B: +2. Two +``` + +List A: +1. One +List B: +2. Two \ No newline at end of file -- cgit v1.2.3-1-g7c22