. tests/functions.sh title "markdown extra-style footnotes" rc=0 MARKDOWN_FLAGS= FOOTIE='I haz a footnote[^1] [^1]: yes?' try -ffootnote 'footnotes (-ffootnote)' "$FOOTIE" \ '

I haz a footnote1


  1. yes?
' try -ffootnote -Cfoot 'footnotes (-ffootnote -Cfoot)' "$FOOTIE" \ '

I haz a footnote1


  1. yes?
' try -ffootnote 'footnotes(two adjacent footnotes)' 'Hello[^1][^2] [^1]: world [^2]: from Hamburg' '

Hello12


  1. world
  2. from Hamburg
' try -fnofootnote 'footnotes (-fnofootnote)' "$FOOTIE" \ '

I haz a footnote^1

' TSRC='Alpha[^AlphaF]. Column 1 | Column 2 ---------------------------------|-------------------------- Beta[^BetaF] | cell [^AlphaF]: Alpha Footnote [^BetaF]: Beta Footnote' TOUT='

Alpha1.

Column 1 Column 2
Beta2 cell

  1. Alpha Footnote
  2. Beta Footnote
' try -ffootnote 'footnotes inside table elements' "$TSRC" "$TOUT" TSRC='[Test test[^test]](class:test) Test2[^testtwo] Test3[^testthree] Test4[^testfour] [^test]: Test footnote [^testtwo]: Test2 footnote [^testthree]: Test3 footnote [^testfour]: Test4 footnote' TOUT='

Test test1

Test22

Test33

Test44


  1. Test footnote
  2. Test2 footnote
  3. Test3 footnote
  4. Test4 footnote
' try -ffootnote 'footnotes inside spans' "$TSRC" "$TOUT" for x in tests/data/f??.text;do result=`echo $x | sed -e 's/.text$/.html/'` try -ffootnote "`basename $x`" "`cat $x`" "`cat $result`" done summary $0 exit $rc