From 6448825a8f9beca0333464c9bfbc8fb96d142189 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Wed, 4 May 2022 19:57:02 +0100 Subject: (subplot): Add support for example blocks In support of #256, this adds `example` as a permitted class and ensures that we typeset it as though it were a file. This includes linting it as though it were a file too. Signed-off-by: Daniel Silverstone --- src/doc.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/doc.rs') diff --git a/src/doc.rs b/src/doc.rs index 9c5fae8..ed88e95 100644 --- a/src/doc.rs +++ b/src/doc.rs @@ -28,7 +28,9 @@ use log::{error, trace}; /// The set of known (special) classes which subplot will always recognise /// as being valid. -static SPECIAL_CLASSES: &[&str] = &["scenario", "file", "dot", "pikchr", "plantuml", "roadmap"]; +static SPECIAL_CLASSES: &[&str] = &[ + "scenario", "file", "example", "dot", "pikchr", "plantuml", "roadmap", +]; /// The set of known (file-type) classes which subplot will always recognise /// as being valid. -- cgit v1.2.1