Warning, /education/cantor/thirdparty/discount-2.2.6-patched/tests/list.t is written in an unsupported language. File is not indexed.
0001 . tests/functions.sh 0002 title "lists" 0003 0004 rc=0 0005 MARKDOWN_FLAGS= 0006 0007 try 'two separated items' \ 0008 ' * A 0009 0010 * B' \ 0011 '<ul> 0012 <li><p>A</p></li> 0013 <li><p>B</p></li> 0014 </ul>' 0015 0016 try 'two adjacent items' \ 0017 ' * A 0018 * B' \ 0019 '<ul> 0020 <li>A</li> 0021 <li>B</li> 0022 </ul>' 0023 0024 0025 try 'two adjacent items, then space' \ 0026 ' * A 0027 * B 0028 0029 space, the final frontier' \ 0030 '<ul> 0031 <li>A</li> 0032 <li>B</li> 0033 </ul> 0034 0035 0036 <p>space, the final frontier</p>' 0037 0038 try 'nested lists (1)' \ 0039 ' * 1. Sub (list) 0040 2. Two (items) 0041 3. Here' \ 0042 '<ul> 0043 <li><ol> 0044 <li>Sub (list)</li> 0045 <li>Two (items)</li> 0046 <li>Here</li> 0047 </ol> 0048 </li> 0049 </ul>' 0050 0051 try 'nested lists (2)' \ 0052 ' * A (list) 0053 0054 1. Sub (list) 0055 2. Two (items) 0056 3. Here 0057 0058 Here 0059 * B (list)' \ 0060 '<ul> 0061 <li><p>A (list)</p> 0062 0063 <ol> 0064 <li>Sub (list)</li> 0065 <li>Two (items)</li> 0066 <li>Here</li> 0067 </ol> 0068 0069 0070 <p> Here</p></li> 0071 <li>B (list)</li> 0072 </ul>' 0073 0074 try 'list inside blockquote' \ 0075 '>A (list) 0076 > 0077 >1. Sub (list) 0078 >2. Two (items) 0079 >3. Here' \ 0080 '<blockquote><p>A (list)</p> 0081 0082 <ol> 0083 <li>Sub (list)</li> 0084 <li>Two (items)</li> 0085 <li>Here</li> 0086 </ol> 0087 </blockquote>' 0088 0089 try 'blockquote inside list' \ 0090 ' * A (list) 0091 0092 > quote 0093 > me 0094 0095 dont quote me' \ 0096 '<ul> 0097 <li><p>A (list)</p> 0098 0099 <blockquote><p>quote 0100 me</p></blockquote> 0101 0102 <p>dont quote me</p></li> 0103 </ul>' 0104 0105 try 'empty list' \ 0106 ' 0107 - 0108 0109 - 0110 ' \ 0111 '<ul> 0112 <li></li> 0113 <li></li> 0114 </ul>' 0115 0116 0117 try 'blockquote inside a list' \ 0118 ' * This is a list item. 0119 0120 > This is a quote insde a list item. ' \ 0121 '<ul> 0122 <li><p> This is a list item.</p> 0123 0124 <blockquote><p>This is a quote insde a list item.</p></blockquote></li> 0125 </ul>' 0126 0127 try 'dl followed by non-dl' \ 0128 '=a= 0129 test 0130 2. here' \ 0131 '<dl> 0132 <dt>a</dt> 0133 <dd>test</dd> 0134 </dl> 0135 0136 <ol> 0137 <li>here</li> 0138 </ol>' 0139 0140 try 'non-dl followed by dl' \ 0141 '1. hello 0142 =sailor= 0143 hi!' \ 0144 '<ol> 0145 <li>hello</li> 0146 </ol> 0147 0148 0149 <dl> 0150 <dt>sailor</dt> 0151 <dd>hi!</dd> 0152 </dl>' 0153 0154 try 'long enumerated list tag' \ 0155 '10000. This is an item 0156 0157 and this is another paragraph in the same 0158 item. 0159 0160 2. and this is another item. 0161 ' \ 0162 '<ol> 0163 <li><p>This is an item</p> 0164 0165 <p>and this is another paragraph in the same 0166 item.</p></li> 0167 <li><p>and this is another item.</p></li> 0168 </ol>' 0169 0170 try 'long enumerated list tag' \ 0171 '10000. This is an item 0172 0173 and this is another paragraph in the same 0174 item. 0175 0176 200000. A longer number in an embedded list. 0177 200001. Another longer and bigger number in an embedded list. 0178 0179 2. and this is another item. 0180 ' \ 0181 '<ol> 0182 <li><p>This is an item</p> 0183 0184 <p>and this is another paragraph in the same 0185 item.</p> 0186 0187 <ol> 0188 <li>A longer number in an embedded list.</li> 0189 <li>Another longer and bigger number in an embedded list.</li> 0190 </ol> 0191 </li> 0192 <li><p>and this is another item.</p></li> 0193 </ol>' 0194 0195 0196 try 'bullet followed by number (non-explicit)' \ 0197 ' * A 0198 1. B' \ 0199 '<ul> 0200 <li>A</li> 0201 <li>B</li> 0202 </ul>' 0203 0204 try -fexplicitlist 'bullet followed by number (explicit)' \ 0205 ' * A 0206 1. B' \ 0207 '<ul> 0208 <li>A</li> 0209 </ul> 0210 0211 0212 <ol> 0213 <li>B</li> 0214 </ol>' 0215 0216 summary $0 0217 exit $rc