diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-10-13 19:31:15 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-10-13 19:31:15 +0200 |
commit | 218cf7a77f3b487a003b45adfb3687e52bdfdfe9 (patch) | |
tree | bd5dafe9b34e197f78ee02e21300a68ecdfa930f | |
parent | cdf9f97c34734e82431bbc54d3383f7ac6ac328e (diff) | |
download | markdown-rs-218cf7a77f3b487a003b45adfb3687e52bdfdfe9.tar.gz markdown-rs-218cf7a77f3b487a003b45adfb3687e52bdfdfe9.tar.bz2 markdown-rs-218cf7a77f3b487a003b45adfb3687e52bdfdfe9.zip |
Add test for raw html w/o `>` after closing tag
Diffstat (limited to '')
-rw-r--r-- | tests/html_flow.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/html_flow.rs b/tests/html_flow.rs index 546cb13..41f6565 100644 --- a/tests/html_flow.rs +++ b/tests/html_flow.rs @@ -209,6 +209,12 @@ p {color:blue;} ); assert_eq!( + to_html_with_options("<script>a</script\nb", &danger)?, + "<script>a</script\nb", + "should not support stopping raw if the closing tag does not have a `>`" + ); + + assert_eq!( to_html_with_options("<script>\n \n \n</script>", &danger)?, "<script>\n \n \n</script>", "should support blank lines in raw" |