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.

29 lines
834 B

  1. . tests/functions.sh
  2. title "The snakepit of Markdown.pl compatibility"
  3. rc=0
  4. MARKDOWN_FLAGS=
  5. try '[](single quote) text (quote)' \
  6. "[foo](http://Poe's law) will make this fail ('no, it won't!') here."\
  7. '<p><a href="http://Poe" title="s law) will make this fail ('"'no, it won't!"'">foo</a> here.</p>'
  8. try '-f1.0' '[](unclosed <url) (MKD_1_COMPAT)' '[foo](<http://no trailing gt)' \
  9. '<p><a href="http://no%20trailing%20gt">foo</a></p>'
  10. try '[](unclosed <url)' '[foo](<http://no trailing gt)' \
  11. '<p>[foo](&lt;http://no trailing gt)</p>'
  12. try '<unfinished <tags> (1)' \
  13. '<foo [bar](foo) <s>hi</s>' \
  14. '<p><foo [bar](foo) <s>hi</s></p>'
  15. try '<unfinished &<tags> (2)' \
  16. '<foo [bar](foo) &<s>hi</s>' \
  17. '<p><foo [bar](foo) &<s>hi</s></p>'
  18. try 'paragraph <br/> oddity' 'EOF ' '<p>EOF</p>'
  19. summary $0
  20. exit $rc