aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-09-08 10:23:03 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-09-08 10:24:04 +0200
commit31ab712f2e45de567fd699786a49af678a30cd15 (patch)
tree2ba297a37bfa3cf24ae9ab0c94a2324e975e84fb /examples
parentc3a4865d3ae4fe89d23037742c3a88e08b0f970d (diff)
downloadmarkdown-rs-31ab712f2e45de567fd699786a49af678a30cd15.tar.gz
markdown-rs-31ab712f2e45de567fd699786a49af678a30cd15.tar.bz2
markdown-rs-31ab712f2e45de567fd699786a49af678a30cd15.zip
Add tests for mdx jsx (text)
Diffstat (limited to 'examples')
-rw-r--r--examples/lib.rs8
1 files changed, 5 insertions, 3 deletions
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(())
}