genkit 0.3.1

A common generator kit for static site generator.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::fmt;

use dyn_clone::DynClone;

use crate::code_blocks::Fenced;

#[allow(unused_variables)]
pub trait MarkdownVisitor: DynClone + fmt::Debug {
    fn visit_code(&self, code: &str) -> Option<String> {
        None
    }

    fn visit_custom_block(&self, fenced: &Fenced, content: &str) -> Option<String> {
        None
    }
}