1<?php 2 3/* 4 * This file is part of the clockoon/dokuwiki-commonmark-plugin package. 5 * 6 * (c) Sungbin Jeon <clockoon@gmail.com> 7 * 8 * Original code based on the followings: 9 * - CommonMark JS reference parser (https://bitly.com/commonmark-js) (c) John MacFarlane 10 * - league/commonmark (https://github.com/thephpleague/commonmark) (c) Colin O'Dell <colinodell@gmail.com> 11 * 12 * For the full copyright and license information, please view the LICENSE 13 * file that was distributed with this source code. 14 */ 15 16declare(strict_types=1); 17 18namespace DokuWiki\Plugin\Commonmark\Extension\Renderer\Inline; 19 20use League\CommonMark\Renderer\ChildNodeRendererInterface; 21use League\CommonMark\Extension\Footnote\Node\FootnoteBackref; 22use League\CommonMark\Node\Node; 23use League\CommonMark\Renderer\NodeRendererInterface; 24use League\Config\ConfigurationAwareInterface; 25use League\Config\ConfigurationInterface; 26 27final class FootnoteBackrefRenderer implements NodeRendererInterface, ConfigurationAwareInterface 28{ 29 /** @var ConfigurationInterface */ 30 private ConfigurationInterface $config; 31 32 public function render(Node $node, ChildNodeRendererInterface $DWRenderer) 33 { 34 FootnoteBackref::assertInstanceOf($node); 35 36 return ''; 37 } 38 39 public function setConfiguration(ConfigurationInterface $configuration): void 40 { 41 $this->config = $configuration; 42 } 43} 44