github.com/qichengzx/mattermost-server@v4.5.1-0.20180604164826-2c75247c97d0+incompatible/tests/test-markdown-lists.md (about) 1 # Markdown List Testing 2 Verify that all list types render as expected. 3 4 ### Single-Item Ordered List 5 6 **Expected:** 7 ``` 8 7. Single Item 9 ``` 10 11 **Actual:** 12 7. Single Item 13 14 ### Multi-Item Ordered List 15 16 **Expected:** 17 ``` 18 1. One 19 2. Two 20 3. Three 21 ``` 22 23 **Actual:** 24 25 1. One 26 1. Two 27 1. Three 28 29 ### Nested Ordered List 30 31 **Expected:** 32 ``` 33 1. Alpha 34 1. Bravo 35 2. Charlie 36 3. Delta 37 1. Echo 38 2. Foxtrot 39 ``` 40 41 **Actual:** 42 43 1. Alpha 44 1. Bravo 45 1. Charlie 46 1. Delta 47 1. Echo 48 1. Foxtrot 49 50 ### Single-Item Unordered List 51 52 **Expected:** 53 ``` 54 • Single Item 55 ``` 56 57 **Actual:** 58 * Single Item 59 60 ### Multi-Item Unordered List 61 62 **Expected:** 63 ``` 64 • One 65 • Two 66 • Three 67 ``` 68 69 **Actual:** 70 * One 71 - Two 72 + Three 73 74 ### Multi-Item Unordered List with Line Break (Break should not render) 75 76 **Expected:** 77 ``` 78 • Item A 79 • Item B 80 • Item C 81 • Item D 82 ``` 83 84 **Actual:** 85 * Item A 86 + Item B 87 88 - Item C 89 - Item D 90 91 ### Nested Unordered List 92 93 **Expected:** 94 ``` 95 • Alpha 96 • Bravo 97 • Charlie 98 • Delta 99 • Echo 100 • Foxtrot 101 ``` 102 103 **Actual:** 104 + Alpha 105 * Bravo 106 - Charlie 107 * Delta 108 + Echo 109 - Foxtrot 110 111 ### Mixed List Starting Ordered 112 113 **Expected:** 114 ``` 115 1. One 116 2. Two 117 3. Three 118 ``` 119 120 **Actual:** 121 122 1. One 123 + Two 124 - Three 125 126 ### Mixed List Starting Unordered 127 128 **Expected:** 129 ``` 130 • Monday 131 • Tuesday 132 • Wednesday 133 ``` 134 135 **Actual:** 136 + Monday 137 1. Tuesday 138 * Wednesday 139 140 ### Nested Mixed List 141 142 **Expected:** 143 ``` 144 • Alpha 145 1. Bravo 146 • Charlie 147 • Delta 148 • Echo 149 • Foxtrot 150 • Golf 151 1. Hotel 152 • India 153 1. Juliet 154 2. Kilo 155 • Lima 156 • Mike 157 1. November 158 4. Oscar 159 5. Papa 160 ``` 161 162 **Actual:** 163 - Alpha 164 1. Bravo 165 * Charlie 166 + Delta 167 - Echo 168 * Foxtrot 169 + Golf 170 1. Hotel 171 - India 172 1. Juliet 173 2. Kilo 174 * Lima 175 1. Mike 176 1. November 177 4. Oscar 178 5. Papa 179 180 ### Ordered Lists Separated by Carriage Returns 181 182 **Expected:** 183 ``` 184 1. One 185 • Two 186 2. Two 187 3. Three 188 ``` 189 190 **Actual:** 191 192 1. One 193 - Two 194 195 2. Two 196 3. Three 197 198 ### New Line After a List 199 200 **Expected:** 201 ``` 202 1. One 203 2. Two 204 205 This text should be on a new line. 206 ``` 207 208 **Actual:** 209 210 1. One 211 2. Two 212 This text should be on a new line. 213 214 ### Task Lists 215 216 **Expected:** 217 ``` 218 [ ] One 219 [ ] Subpoint one 220 - Normal Bullet 221 [ ] Two 222 [x] Completed item 223 ``` 224 225 **Actual:** 226 227 - [ ] One 228 - [ ] Subpoint one 229 - Normal Bullet 230 - [ ] Two 231 - [x] Completed item 232 233 ### Numbered Task Lists 234 235 **Expected:** 236 ``` 237 1. [ ] One 238 2. [ ] Two 239 3. [x] Completed item 240 ``` 241 242 **Actual:** 243 244 1. [ ] One 245 2. [ ] Two 246 3. [x] Completed item 247 248 ### Multiple Lists 249 250 **Expected:** 251 ``` 252 List A: 253 254 1. One 255 256 List B: 257 258 2. Two 259 ``` 260 261 List A: 262 263 1. One 264 265 List B: 266 267 2. Two 268 269 ### Lists with blank lines before and after 270 271 **Expected:** 272 273 ``` 274 Line with blank line after 275 276 Line with blank line after and before 277 278 1. Bullet 279 2. Bullet 280 3. Bullet 281 282 Line with blank line after and before 283 284 Line with blank line before 285 ``` 286 Line with blank line after 287 288 Line with blank line after and before 289 290 1. Bullet 291 2. Bullet 292 3. Bullet 293 294 Line with blank line after and before 295 296 Line with blank line before