. 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 'dl followed by non-dl' \
'=a=
test
2. here' \
'
- a
- test
- here
'
try 'non-dl followed by dl' \
'1. hello
=sailor=
hi!' \
'
- hello
- sailor
- hi!
'
summary $0
exit $rc