summaryrefslogtreecommitdiff
path: root/src/visitor/block_class.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/visitor/block_class.rs')
-rw-r--r--src/visitor/block_class.rs25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/visitor/block_class.rs b/src/visitor/block_class.rs
deleted file mode 100644
index 303616b..0000000
--- a/src/visitor/block_class.rs
+++ /dev/null
@@ -1,25 +0,0 @@
-use std::collections::HashSet;
-
-use pandoc_ast::{Block, MutVisitor};
-
-#[derive(Default)]
-pub struct BlockClassVisitor {
- pub classes: HashSet<String>,
-}
-
-impl MutVisitor for BlockClassVisitor {
- fn visit_vec_block(&mut self, vec_block: &mut Vec<Block>) {
- for block in vec_block {
- match block {
- Block::CodeBlock(attr, _) => {
- for class in &attr.1 {
- self.classes.insert(class.to_string());
- }
- }
- _ => {
- self.visit_block(block);
- }
- }
- }
- }
-}