[][src]Module parse_hyperlinks::parser

This module implements parsers to extract hyperlinks and link reference definitions from text input.

Modules

asciidoc

This module implements parsers for Asciidoc hyperlinks.

html

This module implements parsers for HTML hyperlinks.

markdown

This module implements parsers for Markdown hyperlinks.

restructured_text

This module implements parsers for RestructuredText hyperlinks.

Enums

Link

A link can be an inline link, a reference link or a link reference definition. This is the main return type of this API.

Functions

first_hyperlink

Recognizes hyperlinks in Markdown, RestructuredText, Asciidoc or HTML format and returns the first hyperlink found as tuple: Some((link_text_or_label, link_destination, link_title)).

take_link

Consumes the input until it finds a Markdown, RestructuredText, Asciidoc or HTML formatted inline link (Text2Dest), reference link (Text2Label), link reference definition (Label2Dest) or reference alias (Label2Label).

take_text2dest_label2dest

Consumes the input until it finds a Markdown, RestructuredText, Asciidoc or HTML formatted inline link (Text2Dest) or or link reference definition (Label2Dest).