From 057331aa6428e0c27edca8e49f3e0e87edd82e36 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Thu, 1 Apr 2021 00:09:18 +0200 Subject: feat(cheddar): Set front_matter_delimiter = '---' extension This chops off "front matter", which we have - for example - in Tvix documentation that is rendered through Pandoc. Change-Id: I65c7a4ad8171423a50aaf47c046dab8c774346d8 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2717 Reviewed-by: flokli Tested-by: BuildkiteCI --- tools/cheddar/src/main.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'tools/cheddar') diff --git a/tools/cheddar/src/main.rs b/tools/cheddar/src/main.rs index 168f491fc650..9f6d1a25db52 100644 --- a/tools/cheddar/src/main.rs +++ b/tools/cheddar/src/main.rs @@ -49,6 +49,7 @@ lazy_static! { options.extension.header_ids = Some(String::new()); // yyeeesss! options.extension.footnotes = true; options.extension.description_lists = true; + options.extension.front_matter_delimiter = Some("---".to_owned()); // Required for tagfilter options.render.unsafe_ = true; -- cgit 1.4.1