aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--examples/lib.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/lib.rs b/examples/lib.rs
index 00f45dc..718e400 100644
--- a/examples/lib.rs
+++ b/examples/lib.rs
@@ -1,5 +1,5 @@
extern crate micromark;
-use micromark::{micromark, micromark_with_options, CompileOptions};
+use micromark::{micromark, micromark_with_options, Options};
fn main() {
// Turn on debugging.
@@ -14,9 +14,10 @@ fn main() {
"{:?}",
micromark_with_options(
"<div style=\"color: tomato\">\n\n# Hello, tomato!\n\n</div>",
- &CompileOptions {
+ &Options {
allow_dangerous_html: true,
- allow_dangerous_protocol: true
+ allow_dangerous_protocol: true,
+ default_line_ending: None
}
)
);