pub fn md_img2dest(
i: &str,
) -> IResult<&str, (Cow<'_, str>, Cow<'_, str>, Cow<'_, str>, Cow<'_, str>, Cow<'_, str>, Cow<'_, str>)>Expand description
Parse a Markdown link with an embedded image.
It returns either
The parser expects to start at the link start (!) to succeed.
use parse_hyperlinks;
use parse_hyperlinks::parser::markdown_img::md_img2dest;
use std::borrow::Cow;
assert_eq!(
md_img2dest("[111222]\
(<http://page.com> \"my title\")abc"),
Ok(("abc",
(Cow::from("111"), Cow::from("my dog"), Cow::from("/my&dog.png"),
Cow::from("222"), Cow::from("http://page.com"), Cow::from("my title"),
))));