[−][src]Function parse_hyperlinks::parser::markdown::md_link_text2dest
pub fn md_link_text2dest(i: &str) -> IResult<&str, Link<'_>>
Parses a Markdown inline link.
This parser expects to start at the beginning of the link [ to succeed.
use parse_hyperlinks::parser::Link; use parse_hyperlinks::parser::markdown::md_link_text2dest; use std::borrow::Cow; assert_eq!( md_link_text2dest(r#"[name](<destination> "title")abc"#), Ok(("abc", Link::Text2Dest(Cow::from("name"), Cow::from("destination"), Cow::from("title")))) );