markdown-linkify 0.3.1

Markdown preprocessor for substiting link shorthands to valid links according to configurable regexes and custom substitution implementations
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use pulldown_cmark::Event;

use crate::link::Link;

use std::fmt::Debug;

pub mod empty_playground_inserter;

pub trait LinkReplacer: Debug + dyn_clone::DynClone {
    fn apply(&self, link: &mut Link) -> anyhow::Result<Event<'_>>;

    fn tag(&self) -> String;
}