xref: /plugin/commonmark/src/Dokuwiki/Plugin/Commonmark/Extension/Renderer/Block/FootnoteRenderer.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\Block;
19f46768a8SSungbin Jeon
20*b0a36678SSungbin Jeonuse League\CommonMark\Node\Node;
2194a075eeSSungbin Jeonuse League\CommonMark\Renderer\NodeRendererInterface;
22*b0a36678SSungbin Jeonuse League\CommonMark\Renderer\ChildNodeRendererInterface;
23f46768a8SSungbin Jeonuse League\CommonMark\Extension\Footnote\Node\Footnote;
24*b0a36678SSungbin Jeonuse League\Config\ConfigurationAwareInterface;
25*b0a36678SSungbin Jeonuse League\Config\ConfigurationInterface;
26f46768a8SSungbin Jeon
2794a075eeSSungbin Jeonfinal class FootnoteRenderer implements NodeRendererInterface, ConfigurationAwareInterface
28f46768a8SSungbin Jeon{
29f46768a8SSungbin Jeon    /** @var ConfigurationInterface */
30*b0a36678SSungbin Jeon    private ConfigurationInterface $config;
31f46768a8SSungbin Jeon
32f46768a8SSungbin Jeon    /**
33*b0a36678SSungbin Jeon     * @param Footnote                 $nofr
34*b0a36678SSungbin Jeon     * @param ChildNodeRendererInterface $htmlRenderer
35f46768a8SSungbin Jeon     * @param bool                     $inTightList
36f46768a8SSungbin Jeon     *
37f46768a8SSungbin Jeon     * @return HtmlElement
38f46768a8SSungbin Jeon     */
39*b0a36678SSungbin Jeon    public function render(Node $node, ChildNodeRendererInterface $DWRenderer): \Stringable
40f46768a8SSungbin Jeon    {
41*b0a36678SSungbin Jeon        Footnote::assertInstanceOf($node);
42f46768a8SSungbin Jeon
43f46768a8SSungbin Jeon        return '';
44f46768a8SSungbin Jeon    }
45f46768a8SSungbin Jeon
46*b0a36678SSungbin Jeon    public function setConfiguration(ConfigurationInterface $configuration): void
47f46768a8SSungbin Jeon    {
48f46768a8SSungbin Jeon        $this->config = $configuration;
49f46768a8SSungbin Jeon    }
50f46768a8SSungbin Jeon}
51