From 25e267afbc0789ea36508d45c3ea3545b84223bb Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 18 Aug 2022 18:33:10 +0200 Subject: Add support for GFM autolink literals --- examples/lib.rs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/lib.rs b/examples/lib.rs index 94c2c58..62d7ee4 100644 --- a/examples/lib.rs +++ b/examples/lib.rs @@ -22,7 +22,19 @@ fn main() { ) ); - // Support extensions that are not in CommonMark. + // Support GFM extensions. + println!( + "{}", + micromark_with_options( + "Just a link! https://example.com.", + &Options { + constructs: Constructs::gfm(), + ..Options::default() + } + ) + ); + + // Support other extensions that are not in CommonMark. println!( "{:?}", micromark_with_options( -- cgit