| | 219 | --- |
| | 220 | name: ordered list immediately following paragraph |
| | 221 | desc: Normally a paragraph and a list that follows it should be separated by two newlines. Textile-2.0.0 recognizes the list even when separated by only one newline, but creates invalid XHTML by placing the list inside the paragraph. RedCloth recognizes the pattern for backward compatibility, but creates valid XHTML. |
| | 222 | in: |- |
| | 223 | A simple example. |
| | 224 | # One |
| | 225 | # Two |
| | 226 | html: |- |
| | 227 | <p>A simple example.</p> |
| | 228 | <ol> |
| | 229 | <li>One</li> |
| | 230 | <li>Two</li> |
| | 231 | </ol> |
| | 232 | --- |
| | 233 | name: unordered list immediately following paragraph |
| | 234 | in: |- |
| | 235 | A simple example. |
| | 236 | * One |
| | 237 | * Two |
| | 238 | html: |- |
| | 239 | <p>A simple example.</p> |
| | 240 | <ul> |
| | 241 | <li>One</li> |
| | 242 | <li>Two</li> |
| | 243 | </ul> |
| | 244 | --- |
| | 245 | name: ordered list immediately following extended block |
| | 246 | in: |- |
| | 247 | div.. Here it comes. |
| | 248 | |
| | 249 | A simple example. |
| | 250 | # One |
| | 251 | # Two |
| | 252 | html: |- |
| | 253 | <div>Here it comes.</div> |
| | 254 | <div>A simple example.</div> |
| | 255 | <ol> |
| | 256 | <li>One</li> |
| | 257 | <li>Two</li> |
| | 258 | </ol> |
| | 259 | --- |
| | 260 | name: unordered list immediately following extended block |
| | 261 | in: |- |
| | 262 | div.. Here it comes. |
| | 263 | |
| | 264 | A simple example. |
| | 265 | * One |
| | 266 | * Two |
| | 267 | html: |- |
| | 268 | <div>Here it comes.</div> |
| | 269 | <div>A simple example.</div> |
| | 270 | <ul> |
| | 271 | <li>One</li> |
| | 272 | <li>Two</li> |
| | 273 | </ul> |