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.

36 lines
521 B

  1. . tests/functions.sh
  2. title "styles"
  3. rc=0
  4. MARKDOWN_FLAGS=
  5. try 'single line' '<style> ul {display:none;} </style>' ''
  6. ASK='<style>
  7. ul {display:none;}
  8. </style>'
  9. try 'multiple lines' "$ASK" ''
  10. try 'unclosed' '<style>foo' '<p><style>foo</p>'
  11. UNCLOSED='<style>
  12. text
  13. text'
  14. RESULT='<p><style>
  15. text</p>
  16. <p>text</p>'
  17. try 'multiple lines unclosed' "$UNCLOSED" "$RESULT"
  18. try -fnohtml 'unclosed with -fnohtml' '<style>foo' '<p>&lt;style>foo</p>'
  19. try -fnostyle 'disabling style blocks' "$ASK" "$ASK"
  20. summary $0
  21. exit $rc