Warning, /education/cantor/thirdparty/discount-2.2.6-patched/tests/peculiarities.t is written in an unsupported language. File is not indexed.
0001 . tests/functions.sh 0002 0003 title "markup peculiarities" 0004 0005 rc=0 0006 MARKDOWN_FLAGS= 0007 0008 try 'list followed by header .......... ' \ 0009 " 0010 - AAA 0011 - BBB 0012 -" \ 0013 '<ul> 0014 <li>AAA 0015 0016 <h2>- BBB</h2></li> 0017 </ul>' 0018 0019 try 'ul with mixed item prefixes' \ 0020 ' 0021 - A 0022 1. B' \ 0023 '<ul> 0024 <li>A</li> 0025 <li>B</li> 0026 </ul>' 0027 0028 try 'ol with mixed item prefixes' \ 0029 ' 0030 1. A 0031 - B 0032 ' \ 0033 '<ol> 0034 <li>A</li> 0035 <li>B</li> 0036 </ol>' 0037 0038 try 'nested lists and a header' \ 0039 '- A list item 0040 That goes over multiple lines 0041 0042 and paragraphs 0043 0044 - Another list item 0045 0046 + with a 0047 + sublist 0048 0049 ## AND THEN A HEADER' \ 0050 '<ul> 0051 <li><p>A list item 0052 That goes over multiple lines</p> 0053 0054 <p> and paragraphs</p></li> 0055 <li><p>Another list item</p> 0056 0057 <ul> 0058 <li>with a</li> 0059 <li>sublist</li> 0060 </ul> 0061 </li> 0062 </ul> 0063 0064 0065 <h2>AND THEN A HEADER</h2>' 0066 0067 try 'forcing a <br/>' 'this 0068 is' '<p>this<br/> 0069 is</p>' 0070 0071 try 'trimming single spaces' 'this ' '<p>this</p>' 0072 try -fnohtml 'markdown <br/> with -fnohtml' 'foo 0073 is' '<p>foo<br/> 0074 is</p>' 0075 0076 summary $0 0077 exit $rc