0

data-scrollkramdown の脚注に属性を追加する簡単な方法はありますか。

[Battlezone](www.github.com) [^1]

上記の私の脚注は、次のようにレンダリングされます。

<sup id="fnref:1"><a href="#fn:1" class="footnote">1</a></sup>

data-scrollアンカータグにその属性を追加することは可能ですか?

4

2 に答える 2

0

脚注定義で個々の脚注に属性を追加できます。

This is some text with a footnote.[^note]

[^note]:{: .class #id other-attribute="attribute"}
    This footnote has some attributes.

出力:

<p>This is some text with a footnote.<sup id="fnref:note"><a href="#fn:note" class="footnote">1</a></sup></p>

<div class="footnotes">
    <ol>
        <li id="fn:note">
            <p class="class" id="id" other-attribute="attribute">This footnote has some attributes. <a href="#fnref:note" class="reversefootnote">&#8617;</a></p>
        </li>
    </ol>
</div>
于 2015-03-10T23:00:36.160 に答える