. */ declare(strict_types=1); namespace Fisharebest\Webtrees\CommonMark; use Fisharebest\Webtrees\GedcomRecord; use League\CommonMark\Node\Node; use League\CommonMark\Renderer\NodeRendererInterface; /** * Convert XREFs within markdown text to links */ class XrefNode extends Node { private GedcomRecord $record; /** * XrefNode constructor. * * @param GedcomRecord $record */ public function __construct(GedcomRecord $record) { parent::__construct(); $this->record = $record; } /** * @return GedcomRecord */ public function record(): GedcomRecord { return $this->record; } }