diff options
author | Lars Wirzenius <liw@liw.fi> | 2023-04-05 18:52:27 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2023-04-08 16:51:58 +0300 |
commit | ae6ea9741102704a5463300973491aa852cdc978 (patch) | |
tree | 97298c4991c59bf731e29d50e2731bc9d4b0e796 /src/doc.rs | |
parent | 81a5a3d01b814afe773837a20f1d01bb586193e7 (diff) | |
download | subplot-ae6ea9741102704a5463300973491aa852cdc978.tar.gz |
refactor(src/doc.rs): rename constant to not refer to Pandoc
Sponsored-by: author
Diffstat (limited to 'src/doc.rs')
-rw-r--r-- | src/doc.rs | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -31,10 +31,10 @@ static SPECIAL_CLASSES: &[&str] = &[ /// as being valid. static KNOWN_FILE_CLASSES: &[&str] = &["rust", "yaml", "python", "sh", "shell", "markdown", "bash"]; -/// The set of known (special-to-pandoc) classes which subplot will always recognise -/// as being valid. We include the subplot-specific noNumberLines class which we use -/// to invert the default numberLines on .file blocks. -static KNOWN_PANDOC_CLASSES: &[&str] = &["numberLines", "noNumberLines"]; +/// The set of known classes which subplot will always recognise as +/// being valid. We include the subplot-specific noNumberLines class +/// which we use to invert the default numberLines on .file blocks. +static KNOWN_BLOCK_CLASSES: &[&str] = &["numberLines", "noNumberLines"]; /// A parsed Subplot document. /// @@ -241,7 +241,7 @@ impl Document { for class in std::iter::empty() .chain(SPECIAL_CLASSES.iter().map(Deref::deref)) .chain(KNOWN_FILE_CLASSES.iter().map(Deref::deref)) - .chain(KNOWN_PANDOC_CLASSES.iter().map(Deref::deref)) + .chain(KNOWN_BLOCK_CLASSES.iter().map(Deref::deref)) .chain(self.meta().classes()) { known_classes.insert(class.to_string()); |