. tests/functions.sh title "definition lists" rc=0 MARKDOWN_FLAGS= SRC=' =this= is an ugly =test= eh?' RSLT='
this
is an ugly
test
eh?
' # discount style try -fdldiscount '=tag= generates definition lists' "$SRC" "$RSLT" try -fdldiscount 'one item with two =tags=' \ '=this= =is= A test, eh?' \ '
this
is
A test, eh?
' # extra style try -fdlextra,nodldiscount '=tag= does nothing' "$SRC" \ '

=this= is an ugly =test= eh?

' try -fdlextra 'markdown extra-style definition lists' \ 'foo : bar' \ '
foo
bar
' try -fdlextra '... with two
s in a row' \ 'foo bar : baz' \ '
foo
bar
baz
' try -fdlextra '... with two
s in a row' \ 'foo : bar : baz' \ '
foo
bar
baz
' try -fdlextra '... with blanks between list items' \ 'foo : bar zip : zap' \ '
foo
bar
zip
zap
' # Hmm, redundancy... SRC='foo : bar =this= is ugly' RSLT='

foo : bar

=this= is ugly

' try -fdlist,nodldiscount,nodlextra '... with definitionlists enabled but all styles disabled' \ "$SRC" \ "$RSLT" #try -fnodefinitionlist,dldiscount,dlextra '... with definitionlists disabled but all styles enabled' \ # "$SRC" \ # "$RSLT" summary $0 exit $rc