aboutsummaryrefslogtreecommitdiffstats
path: root/tests/misc_default_line_ending.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-18 16:31:14 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-18 16:31:14 +0200
commit5403261e8213f68633a09fc3e9bc2e6e2cd777b2 (patch)
treebb3a6419ef42f7611c2cb24fe7024228f579331b /tests/misc_default_line_ending.rs
parent03544cafaa82ba4bd7e0bc3372fc59549a8dc0cc (diff)
downloadmarkdown-rs-5403261e8213f68633a09fc3e9bc2e6e2cd777b2.tar.gz
markdown-rs-5403261e8213f68633a09fc3e9bc2e6e2cd777b2.tar.bz2
markdown-rs-5403261e8213f68633a09fc3e9bc2e6e2cd777b2.zip
Add support for turning off constructs
Diffstat (limited to '')
-rw-r--r--tests/misc_default_line_ending.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/misc_default_line_ending.rs b/tests/misc_default_line_ending.rs
index 8c2f047..ceada62 100644
--- a/tests/misc_default_line_ending.rs
+++ b/tests/misc_default_line_ending.rs
@@ -32,8 +32,7 @@ fn default_line_ending() {
"> a",
&Options {
default_line_ending: Some(LineEnding::CarriageReturn),
- allow_dangerous_html: false,
- allow_dangerous_protocol: false
+ ..Options::default()
}
),
"<blockquote>\r<p>a</p>\r</blockquote>",
@@ -45,8 +44,7 @@ fn default_line_ending() {
"> a\n",
&Options {
default_line_ending: Some(LineEnding::CarriageReturn),
- allow_dangerous_html: false,
- allow_dangerous_protocol: false
+ ..Options::default()
}
),
// To do: is this a bug in `micromark.js` that it uses `\r` for earlier line endings?