. tests/functions.sh rc=0 MARKDOWN_FLAGS= if ./markdown -V | grep ID-ANCHOR >/dev/null; then # old-style; uses id= tag (and collides # with #-style css) title "(old) table-of-contents support" try '-T -ftoc' 'table of contents' \ '#H1 hi' \ '
hi
' try '-T -ftoc' 'toc item with link' \ '##[H2](H2) here' \ 'hi
' try '-T -ftoc' 'toc item with link' \ '##[H2](H2) here' \ '