. tests/functions.sh
title "headers"
rc=0
MARKDOWN_FLAGS=
try 'single #' '#' '
#
'
try 'empty ETX' '##' '#
'
try 'single-char ETX (##W)' '##W' 'W
'
try 'single-char ETX (##W )' '##W ' 'W
'
try 'single-char ETX (## W)' '## W' 'W
'
try 'single-char ETX (## W )' '## W ' 'W
'
try 'single-char ETX (##W##)' '##W##' 'W
'
try 'single-char ETX (##W ##)' '##W ##' 'W
'
try 'single-char ETX (## W##)' '## W##' 'W
'
try 'single-char ETX (## W ##)' '## W ##' 'W
'
try 'multiple-char ETX (##Hello##)' '##Hello##' 'Hello
'
try 'SETEXT with trailing whitespace' \
'hello
===== ' 'hello
'
summary $0
exit $rc