. tests/functions.sh
title "lists"
rc=0
MARKDOWN_FLAGS=
try 'two separated items' \
' * A
* B' \
'
'
try 'two adjacent items' \
' * A
* B' \
''
try 'two adjacent items, then space' \
' * A
* B
space, the final frontier' \
'
space, the final frontier
'
try 'nested lists (1)' \
' * 1. Sub (list)
2. Two (items)
3. Here' \
'
- Sub (list)
- Two (items)
- Here
'
try 'nested lists (2)' \
' * A (list)
1. Sub (list)
2. Two (items)
3. Here
Here
* B (list)' \
'
A (list)
- Sub (list)
- Two (items)
- Here
Here
- B (list)
'
try 'list inside blockquote' \
'>A (list)
>
>1. Sub (list)
>2. Two (items)
>3. Here' \
'A (list)
- Sub (list)
- Two (items)
- Here
'
try 'blockquote inside list' \
' * A (list)
> quote
> me
dont quote me' \
'
A (list)
quote
me
dont quote me
'
try 'empty list' \
'
-
-
' \
''
try 'blockquote inside a list' \
' * This is a list item.
> This is a quote insde a list item. ' \
'
This is a list item.
This is a quote insde a list item.
'
try -fdlist 'dl followed by non-dl' \
'=a=
test
2. here' \
'
- a
- test
- here
'
try -fdlist 'non-dl followed by dl' \
'1. hello
=sailor=
hi!' \
'
- hello
- sailor
- hi!
'
try 'long enumerated list tag' \
'10000. This is an item
and this is another paragraph in the same
item.
2. and this is another item.
' \
'
This is an item
and this is another paragraph in the same
item.
and this is another item.
'
try 'long enumerated list tag' \
'10000. This is an item
and this is another paragraph in the same
item.
200000. A longer number in an embedded list.
200001. Another longer and bigger number in an embedded list.
2. and this is another item.
' \
'
This is an item
and this is another paragraph in the same
item.
- A longer number in an embedded list.
- Another longer and bigger number in an embedded list.
and this is another item.
'
try 'bullet followed by number (non-explicit)' \
' * A
1. B' \
''
try -fexplicitlist 'bullet followed by number (explicit)' \
' * A
1. B' \
'
- B
'
summary $0
exit $rc