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.

19 lines
581 B

  1. . tests/functions.sh
  2. title "emphasis"
  3. rc=0
  4. MARKDOWN_FLAGS=
  5. try '*hi* -> <em>hi</em>' '*hi*' '<p><em>hi</em></p>'
  6. try '* -> *' 'A * A' '<p>A * A</p>'
  7. try -fstrict '***A**B*' '***A**B*' '<p><em><strong>A</strong>B</em></p>'
  8. try -fstrict '***A*B**' '***A*B**' '<p><strong><em>A</em>B</strong></p>'
  9. try -fstrict '**A*B***' '**A*B***' '<p><strong>A<em>B</em></strong></p>'
  10. try -fstrict '*A**B***' '*A**B***' '<p><em>A<strong>B</strong></em></p>'
  11. try -frelax '_A_B with -frelax' '_A_B' '<p>_A_B</p>'
  12. try -fstrict '_A_B with -fstrict' '_A_B' '<p><em>A</em>B</p>'
  13. summary $0
  14. exit $rc