Skip to main content

trek_rs/elements/
mod.rs

1//! Element processors for different content types
2
3pub mod code;
4pub mod footnotes;
5pub mod headings;
6pub mod images;
7
8use lol_html::html_content::Element;
9
10/// Trait for element processors
11pub trait ElementProcessor {
12    /// Process an element
13    fn process(element: &mut Element);
14
15    /// Check if this processor can handle the given element
16    fn can_process(element: &Element) -> bool;
17}