Text::Markdown::Discount
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

list3deep.t 724B

1234567891011121314151617181920212223242526272829303132333435363738
  1. . tests/functions.sh
  2. title "deeply nested lists"
  3. rc=0
  4. MARKDOWN_FLAGS=
  5. LIST='
  6. * top-level list ( list 1)
  7. + second-level list (list 2)
  8. * first item third-level list (list 3)
  9. + * second item, third-level list, first item. (list 4)
  10. * second item, third-level list, second item.
  11. * top-level list again.'
  12. RSLT='<ul>
  13. <li>top-level list ( list 1)
  14. <ul>
  15. <li>second-level list (list 2)
  16. <ul>
  17. <li>first item third-level list (list 3)</li>
  18. </ul>
  19. </li>
  20. <li><ul>
  21. <li>second item, third-level list, first item. (list 4)</li>
  22. <li>second item, third-level list, second item.</li>
  23. </ul>
  24. </li>
  25. </ul>
  26. </li>
  27. <li>top-level list again.</li>
  28. </ul>'
  29. try 'thrice-nested lists' "$LIST" "$RSLT"
  30. summary $0
  31. exit $rc