Interface LinkInfo
public interface LinkInfo
A parsed link/image. There are different types of links.
Inline links:
[text](destination) [text](destination "title")
Reference links, which have different subtypes. Full::
[text][label]Collapsed (label is ""):
[text][]Shortcut (label is null):
[text]Images use the same syntax as links but with a
! marker() front, e.g. .-
Method Summary
Modifier and TypeMethodDescriptionThe position after the closing text bracket, e.g.:The destination if available, e.g. in `[foo](destination)`, or nulllabel()The label, or null for inline links or for shortcut links (in which casetext()should be used as the label).marker()The marker if present, or null.The text node of the opening bracket[.text()The text between the first brackets, e.g.title()The title if available, e.g. in `[foo](destination "title")`, or null
-
Method Details
-
marker
Text marker()The marker if present, or null. A marker is e.g.!for an image, or a custom marker as specified inParser.Builder.linkMarker(Character). -
openingBracket
Text openingBracket()The text node of the opening bracket[. -
text
String text()The text between the first brackets, e.g. `foo` in `[foo][bar]`. -
label
-
destination
String destination()The destination if available, e.g. in `[foo](destination)`, or null -
title
String title()The title if available, e.g. in `[foo](destination "title")`, or null -
afterTextBracket
Position afterTextBracket()The position after the closing text bracket, e.g.:[foo][bar] ^
-