From 6ee90b34c87354baf8e03d5469a92cf5dd17a82b Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 16 Aug 2022 16:49:29 +0200 Subject: Add support for frontmatter --- src/lib.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 4de633c..428838a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -150,6 +150,17 @@ pub struct Constructs { /// ^^^^^^^^^^ /// ``` pub definition: bool, + /// Frontmatter. + /// + /// ````markdown + /// > | --- + /// ^^^ + /// > | title: Neptune + /// ^^^^^^^^^^^^^^ + /// > | --- + /// ^^^ + /// ```` + pub frontmatter: bool, /// Hard break (escape). /// /// ```markdown @@ -246,6 +257,7 @@ impl Default for Constructs { code_fenced: true, code_text: true, definition: true, + frontmatter: false, hard_break_escape: true, hard_break_trailing: true, heading_atx: true, -- cgit