struct

Hwaro::Content::Processors::Wikilinks::Link

Inherits Struct < Value < Object

A parsed [[target#heading|label]]. heading is nil for a plain link and for a block ref (#^id), which links to the page itself.

Constructors

new(embed : Bool, target : String, heading : String | Nil, label : String | Nil)
Source

Instance methods

clone
Source
copy_with(embed _embed = @embed, target _target = @target, heading _heading = @heading, label _label = @label)
Source
embed
file?

A target naming a non-page file (doc.pdf, photo.png).

Source
heading
image?
Source
label
target
text

The alias, or else the target as Obsidian displays it.

Source