Module parse_hyperlinks::iterator
source · Expand description
Module providing an iterator over the hyperlinks found in the input text. Consult the
documentation of parser::parse::take_link()
to see a list of supported markup languages. The
iterator resolves link references.
Structs
- Iterator over all the hyperlinks in the
input
text. This struct holds the iterator’s state and an advancing pointer into theinput
text. The iterator’snext()
method returns a tuple with a tuples inside:Some(((input_split), Link))
.
Functions
- Recognizes hyperlinks in all supported markup languages and returns the first hyperlink found as
Some(Link::Text2Dest
orSome(Link::Image2Dest)
. ReturnsNone
if no hyperlink is found.