unordered_lists.unit 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. >>> asterisk, plus and hyphen
  2. * star
  3. - dash
  4. + plus
  5. <<<
  6. <ul>
  7. <li>star</li>
  8. </ul>
  9. <ul>
  10. <li>dash</li>
  11. </ul>
  12. <ul>
  13. <li>plus</li>
  14. </ul>
  15. >>> new markers begin new lists
  16. * a
  17. 1. b
  18. <<<
  19. <ul>
  20. <li>a</li>
  21. </ul>
  22. <ol>
  23. <li>b</li>
  24. </ol>
  25. >>> allow a tab after the marker
  26. * a
  27. 1. b
  28. <<<
  29. <ul>
  30. <li>a</li>
  31. </ul>
  32. <ol>
  33. <li>b</li>
  34. </ol>
  35. >>> wrap items in paragraphs if blank lines separate
  36. * one
  37. * two
  38. <<<
  39. <ul>
  40. <li>
  41. <p>one</p>
  42. </li>
  43. <li>
  44. <p>two</p>
  45. </li>
  46. </ul>
  47. >>> force paragraph on item before and after blank lines
  48. * one
  49. * two
  50. * three
  51. <<<
  52. <ul>
  53. <li>
  54. <p>one</p>
  55. </li>
  56. <li>
  57. <p>two</p>
  58. </li>
  59. <li>
  60. <p>three</p>
  61. </li>
  62. </ul>
  63. >>> do not force paragraph if item is already block
  64. * > quote
  65. * # header
  66. <<<
  67. <ul>
  68. <li>
  69. <blockquote>
  70. <p>quote</p>
  71. </blockquote>
  72. </li>
  73. <li>
  74. <h1>header</h1>
  75. </li>
  76. </ul>
  77. >>> can contain multiple paragraphs
  78. * one
  79. two
  80. * three
  81. <<<
  82. <ul>
  83. <li>
  84. <p>one</p>
  85. <p>two</p>
  86. </li>
  87. <li>
  88. <p>three</p>
  89. </li>
  90. </ul>
  91. >>> can span newlines
  92. * one
  93. two
  94. * three
  95. <<<
  96. <ul>
  97. <li>one
  98. two</li>
  99. <li>three</li>
  100. </ul>
  101. >>> can nest lists
  102. * one
  103. * nested one
  104. * nested two
  105. * two
  106. <<<
  107. <ul>
  108. <li>
  109. <p>one</p>
  110. <ul>
  111. <li>nested one</li>
  112. <li>nested two</li>
  113. </ul>
  114. </li>
  115. <li>
  116. <p>two</p>
  117. </li>
  118. </ul>
  119. >>> list item allows lazy continuations
  120. - list
  121. item
  122. <<<
  123. <ul>
  124. <li>list
  125. item</li>
  126. </ul>
  127. >>> list item turns what might be an h2 into nothing
  128. - list
  129. ---
  130. <<<
  131. <ul>
  132. <li>list</li>
  133. </ul>
  134. <hr />