diff options
author | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2021-09-18 14:05:39 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2021-09-18 14:05:39 +0000 |
commit | 0a4d0ea1214ac0913f87d2f79901dd54ce2af513 (patch) | |
tree | 03a822384ba5f45c831db574ffd2ad91c9f64946 | |
parent | f1c2110154cb153301f22906e793460e7236fbb8 (diff) | |
parent | c7e837f3713ae5e332dd2066e62f1d2d004ef99d (diff) | |
download | subplot-0a4d0ea1214ac0913f87d2f79901dd54ce2af513.tar.gz |
Merge branch 'fix-documentclass' into 'main'
feat: allow the `documentclass` field in document metadata
Closes #237
See merge request subplot/subplot!216
-rw-r--r-- | src/ast.rs | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -279,6 +279,7 @@ struct Metadata { bibliography: Option<Vec<PathBuf>>, bindings: Option<Vec<PathBuf>>, functions: Option<Vec<PathBuf>>, + documentclass: Option<String>, } impl Metadata { @@ -316,6 +317,9 @@ impl Metadata { if let Some(v) = &self.functions { map.insert(s("functions"), meta_path_bufs(v)); } + if let Some(v) = &self.documentclass { + map.insert(s("documentclass"), meta_string(v)); + } event!( Level::TRACE, ?self, |