markdown-formatter 0.0.13

Flavored Markdown (ZH) content formatter
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::borrow::Cow;

#[derive(Debug, Clone)]
pub enum ContexualLink<'a> {
    /// First link url, second title
    Titled(Cow<'a, String>, Cow<'a, String>),
    /// Link url
    Bare(Cow<'a, String>),
}

#[derive(Debug)]
pub enum ContextualToken<'a> {
    Link(ContexualLink<'a>),
}