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