From f99d131ec3ab60956344d001bcd40244343c241b Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 21 Jun 2022 12:06:51 +0200 Subject: Add support for inferring line ending, configurable * Rename `CompileOptions` to `Options` * Add support for an optional default line ending style * Add support for inferring the used line ending style --- examples/lib.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'examples/lib.rs') 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( "
\n\n# Hello, tomato!\n\n
", - &CompileOptions { + &Options { allow_dangerous_html: true, - allow_dangerous_protocol: true + allow_dangerous_protocol: true, + default_line_ending: None } ) ); -- cgit