fn parse_link_type<F>(
cursor: &mut TokenCursor,
make_element: F,
) -> MdInlineElementExpand description
Parses a link type (either a link or an image) from the current position of the cursor.
§Arguments
cursor- A mutable reference to aTokenCursorthat tracks the current position in the token stream.make_element- A closure that takes the parsed label elements, optional title, and URI, and returns anMdInlineElementrepresenting the link or image.
§Returns
An MdInlineElement representing the parsed link or image.