mixin markdown::LinkInfo

markdown::LinkInfo

@Js

Source

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][]

Shorcut (label is null):

[text]

Images use the same syntax as links but with a ! marker front, e.g. ![text](destination).

afterTextBracket

abstract Position afterTextBracket()

Source

The position after the closing text bracket, e.g:

[foo][bar]
     ^
destination

abstract Str? destination()

Source

The destination if available, e.g. in [foo](destination), or null

label

abstract Str? label()

Source

The label, or null for inline links or for shortcut links (in which case text should be used as the label).

marker

abstract Text? marker()

Source

The marker if present, or null. A marker is e.g. ! for an image, or a customer marker.

openingBracket

abstract Text openingBracket()

Source

The text node of the opening bracket [

text

abstract Str text()

Source

The text between the first brackets, e.g. foo in [foo][bar]

title

abstract Str? title()

Source

The title if available, e.g. in [foo](destination "title"), or null