about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-03-31T22·09+0200
committertazjin <mail@tazj.in>2021-03-31T22·20+0000
commit057331aa6428e0c27edca8e49f3e0e87edd82e36 (patch)
tree55057d3511981e8e040b1d27612fd8378184ac27
parentca578c04ec2d1f2c3641069226be07ce8a03cb69 (diff)
feat(cheddar): Set front_matter_delimiter = '---' extension r/2375
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 <flokli@flokli.de>
Tested-by: BuildkiteCI
-rw-r--r--tools/cheddar/src/main.rs1
1 files changed, 1 insertions, 0 deletions
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;