diff options
Diffstat (limited to 'examples/lib.rs')
-rw-r--r-- | examples/lib.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/lib.rs b/examples/lib.rs index 17524b7..98089de 100644 --- a/examples/lib.rs +++ b/examples/lib.rs @@ -35,6 +35,20 @@ fn main() -> Result<(), String> { )? ); + // Support MDX extensions. + // Note: mdx compiles to nothing, handle it yourself. + println!( + "{}", + micromark_with_options( + "# <HelloMessage />, {username}!", + &Options { + constructs: Constructs::mdx(), + gfm_tagfilter: true, + ..Options::default() + } + )? + ); + // Support other extensions that are not in CommonMark. println!( "{:?}", |