From 31ab712f2e45de567fd699786a49af678a30cd15 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 8 Sep 2022 10:23:03 +0200 Subject: Add tests for mdx jsx (text) --- examples/lib.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/lib.rs b/examples/lib.rs index fe4f9ef..17524b7 100644 --- a/examples/lib.rs +++ b/examples/lib.rs @@ -1,7 +1,7 @@ extern crate micromark; use micromark::{micromark, micromark_with_options, Constructs, Options}; -fn main() { +fn main() -> Result<(), String> { // Turn on debugging. // You can show it with `RUST_LOG=debug cargo run --example lib` env_logger::init(); @@ -32,7 +32,7 @@ fn main() { gfm_tagfilter: true, ..Options::default() } - ) + )? ); // Support other extensions that are not in CommonMark. @@ -47,6 +47,8 @@ fn main() { }, ..Options::default() } - ) + )? ); + + Ok(()) } -- cgit