[−][src]Function parse_hyperlinks::parser::restructured_text::rst_link_ref
pub fn rst_link_ref(i: &str) -> IResult<&str, (String, String)>
Parse a RestructuredText link references. The parser expects to start at the beginning of the line. Here some examples for link references:
.. _Python home page: http://www.python.org
.. _`Python: home page`: http://www.python.org
See unit test test_rst_link_ref() for more examples.
It returns either Ok((i, (link_text, link_destination))) or some error.