Text::Markdown::Discount
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
541 B

  1. . tests/functions.sh
  2. title "pandoc headers"
  3. rc=0
  4. MARKDOWN_FLAGS=
  5. HEADER='% title
  6. % author(s)
  7. % date'
  8. try 'valid header' "$HEADER" ''
  9. try -F0x00010000 'valid header with -F0x00010000' "$HEADER" '<p>% title
  10. % author(s)
  11. % date</p>'
  12. try 'invalid header' \
  13. '% title
  14. % author(s)
  15. a pony!' \
  16. '<p>% title
  17. % author(s)
  18. a pony!</p>'
  19. try 'offset header' \
  20. '
  21. % title
  22. % author(s)
  23. % date' \
  24. '<p>% title
  25. % author(s)
  26. % date</p>'
  27. try 'indented header' \
  28. ' % title
  29. % author(s)
  30. % date' \
  31. '<p> % title
  32. % author(s)
  33. % date</p>'
  34. summary $0
  35. exit $rc