hakimel / reveal.js

The HTML Presentation Framework
https://revealjs.com
MIT License
67.9k stars 16.65k forks source link

How do I get footnotes to work? #2703

Open exhuma opened 4 years ago

exhuma commented 4 years ago

I've seen in #2402 that footnotes should be possible but trying the syntax in that issue did not work for me. Do I need to enable a plugin option for that?

I also don't remember seeing the support for footnotes at all in the markdown syntax except in this bost about extended syntax, so I'm not entirely sure this is at all supported in revealjs.

I am currently writing slides for an on-premise class I am teaching and would like to include some sources to various statements I make in those slides. While a hyperlink is often sufficient, there are cases where I would benefit from adding a small text for context around the link. Footnotes would allow me to do that without cluttering the slide content.

mathben commented 1 year ago

Maybe this can help :-)

<section>
  <h2>Test</h2>
  <ol>
    <li>
      Interface LCNC<sup>1</sup> TODO.
    </li>
  </ol>
  <hr/>
  <div style="text-align: left; font-size: smaller">1: Low-Code/No-Code</div>
</section>
481Kalla commented 1 year ago

ma 24.4.2023 klo 16.40 Mathieu Benoit @.***> kirjoitti:

Maybe this can help :-)

Test

  1. Interface LCNC1 TODO.
Idk how
1: Low-Code/No-Code

— Reply to this email directly, view it on GitHub https://github.com/hakimel/reveal.js/issues/2703#issuecomment-1520179649, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT4OX6HKFGPXR6ORQA7WCHTXCZ7DXANCNFSM4N5KSORQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

jpggithub commented 11 months ago

I'm not a dev but asciidoctor have implemented footnotes in their reveal.js converter.

Perhaps a dev could look at their discussion and their solution at https://github.com/asciidoctor/asciidoctor-reveal.js/issues/30 ?

exhuma commented 11 months ago

Maybe this can help :-)

<section>
  <h2>Test</h2>
  <ol>
    <li>
      Interface LCNC<sup>1</sup> TODO.
    </li>
  </ol>
  <hr/>
  <div style="text-align: left; font-size: smaller">1: Low-Code/No-Code</div>
</section>

I would expect the plugin to render something like this. I would very much prefer to avoid mixing HTML into my MD files.