diff options
| author | 2022-07-04 12:31:12 +0200 | |
|---|---|---|
| committer | 2022-07-04 12:31:12 +0200 | |
| commit | 1052ecc967de3b83cc7099d09cf579bffdcb05e1 (patch) | |
| tree | d4ded837f3ac9941fe7df20e8d657b09eed58ebe /examples | |
| parent | faca28020f4894bdfcf5a4b164ebbc75864d8776 (diff) | |
| download | markdown-rs-1052ecc967de3b83cc7099d09cf579bffdcb05e1.tar.gz markdown-rs-1052ecc967de3b83cc7099d09cf579bffdcb05e1.tar.bz2 markdown-rs-1052ecc967de3b83cc7099d09cf579bffdcb05e1.zip  | |
Add more tests for attention
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/lib.rs | 21 | 
1 files changed, 2 insertions, 19 deletions
diff --git a/examples/lib.rs b/examples/lib.rs index 718e400..ce06738 100644 --- a/examples/lib.rs +++ b/examples/lib.rs @@ -1,24 +1,7 @@  extern crate micromark; -use micromark::{micromark, micromark_with_options, Options}; +use micromark::micromark;  fn main() { -    // Turn on debugging. -    // You can show it with `RUST_LOG=debug cargo run --example lib`      env_logger::init(); - -    // Safely turn (untrusted?) markdown into HTML. -    println!("{:?}", micromark("# Hello, world!")); - -    // Turn trusted markdown into HTML. -    println!( -        "{:?}", -        micromark_with_options( -            "<div style=\"color: tomato\">\n\n# Hello, tomato!\n\n</div>", -            &Options { -                allow_dangerous_html: true, -                allow_dangerous_protocol: true, -                default_line_ending: None -            } -        ) -    ); +    println!("{:?}", micromark("a *b c* d"));  }  | 
