pub(super) fn resolve_event(&self, event: &mut Event) {
        match event {
            Event::Start(Tag::Link(_, dest, _)) | Event::End(Tag::Link(_, dest, _)) => {
                if let Some(new_dest) = self.resolve(&dest) {
                    *dest = new_dest.to_string().into()
                }
            }
            Event::Start(Tag::Heading(n)) | Event::End(Tag::Heading(n)) => *n += 3,
            _ => {}
        }
    }
/// Increase the header count, and resolve link destinations
Increase the header count, and resolve link destinations
Increase the header count and resolve link destinations
pub(super) fn resolve_event(&self, event: &mut Event) {
        match event {
            Event::Start(Tag::Link(_, dest, _)) | Event::End(Tag::Link(_, dest, _)) => {
                if let Some(new_dest) = self.resolve(&dest) {
                    *dest = new_dest.to_string().into()
                }
            }
            Event::Start(Tag::Heading(n)) | Event::End(Tag::Heading(n)) => *n += 3,
            _ => {}
        }
    }
pub ( super ) fn resolve_event ( & self , event : & mut Event ) { match event { Event :: Start ( Tag :: Link ( _ , dest , _ ) ) | Event :: End ( Tag :: Link ( _ , dest , _ ) ) => { if let Some ( new_dest ) = self . resolve ( & dest ) { * dest = new_dest . to_string ( ) . into ( ) } } Event :: Start ( Tag :: Heading ( n ) ) | Event :: End ( Tag :: Heading ( n ) ) => * n += 3 , _ => { } } }
Increase the header count, and resolve link destinations
Increase the header count and resolve link destinations
&self
event
&mut Event
&self
event
&mut Event