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.

21 lines
514 B

  1. . tests/functions.sh
  2. title "backslash escapes"
  3. rc=0
  4. MARKDOWN_FLAGS=
  5. try 'backslashes in []()' '[foo](http://\this\is\.a\test\(here\))' \
  6. '<p><a href="http://\this\is.a\test(here)">foo</a></p>'
  7. try -fautolink 'autolink url with trailing \' \
  8. 'http://a.com/\' \
  9. '<p><a href="http://a.com/\">http://a.com/\</a></p>'
  10. try 'backslashes before <text' '\<code>' '<p>\<code></p>'
  11. try 'backslashes before <{EOF}' '\<' '<p>&lt;</p>'
  12. try 'backslashes before <[space]' '\< j' '<p>&lt; j</p>'
  13. summary $0
  14. exit $rc