list3deep.t 724 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
. tests/functions.sh
title "deeply nested lists"

rc=0
MARKDOWN_FLAGS=

LIST='
 *  top-level list ( list 1)
     +  second-level list (list 2)
        * first item third-level list (list 3)
     +  * second item, third-level list, first item. (list 4)
        * second item, third-level list, second item.
 *  top-level list again.'

RSLT='<ul>
<li>top-level list ( list 1)

<ul>
<li>second-level list (list 2)

<ul>
<li>first item third-level list (list 3)</li>
</ul>
</li>
<li><ul>
<li>second item, third-level list, first item. (list 4)</li>
<li>second item, third-level list, second item.</li>
</ul>
</li>
</ul>
</li>
<li>top-level list again.</li>
</ul>'

try 'thrice-nested lists' "$LIST" "$RSLT"

summary $0
exit $rc