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.

18 lines
635 B

  1. . tests/functions.sh
  2. title "xml output with MKD_CDATA"
  3. rc=0
  4. MARKDOWN_FLAGS=
  5. try -fcdata 'xml output from markdown()' 'hello,sailor' '<p>hello,sailor</p>'
  6. try -fcdata 'from mkd_generateline()' -t'"hello,sailor"' '“hello,sailor”'
  7. try -fnocdata 'html output from markdown()' '"hello,sailor"' '<p>&ldquo;hello,sailor&rdquo;</p>'
  8. try -fnocdata '... from mkd_generateline()' -t'"hello,sailor"' '&ldquo;hello,sailor&rdquo;'
  9. try -fcdata 'xml output with multibyte utf-8' \
  10. 'tecnología y servicios más confiables' \
  11. '&lt;p&gt;tecnología y servicios más confiables&lt;/p&gt;'
  12. summary $0
  13. exit $rc