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.

26 lines
695 B

  1. . tests/functions.sh
  2. title "headers"
  3. rc=0
  4. MARKDOWN_FLAGS=
  5. try 'single #' '#' '<p>#</p>'
  6. try 'empty ETX' '##' '<h1>#</h1>'
  7. try 'single-char ETX (##W)' '##W' '<h2>W</h2>'
  8. try 'single-char ETX (##W )' '##W ' '<h2>W</h2>'
  9. try 'single-char ETX (## W)' '## W' '<h2>W</h2>'
  10. try 'single-char ETX (## W )' '## W ' '<h2>W</h2>'
  11. try 'single-char ETX (##W##)' '##W##' '<h2>W</h2>'
  12. try 'single-char ETX (##W ##)' '##W ##' '<h2>W</h2>'
  13. try 'single-char ETX (## W##)' '## W##' '<h2>W</h2>'
  14. try 'single-char ETX (## W ##)' '## W ##' '<h2>W</h2>'
  15. try 'multiple-char ETX (##Hello##)' '##Hello##' '<h2>Hello</h2>'
  16. try 'SETEXT with trailing whitespace' \
  17. 'hello
  18. ===== ' '<h1>hello</h1>'
  19. summary $0
  20. exit $rc