presenterm icon indicating copy to clipboard operation
presenterm copied to clipboard

Show footnotes on current slide

Open yochem opened this issue 2 months ago • 3 comments

Thanks for creating this really pretty TUI markdown presenter.

I saw that a PR had been merged for defining footnotes, but I couldn't find my footnote definitions. Turns out they're included at the end of the presentation. I believe it would be desirable to have the definitions on the current slide (either via an option or as default?). My use case is to use footnotes to link URLs, which I want to be able to click on during the presentation.

Thank you in advance!

yochem avatar Oct 30 '25 12:10 yochem

Not sure what you're seeing but based on #616 which added support for this, this will show up wherever you place the [^1]: xyz definitions. Please provide an example presentation that proves otherwise.

mfontanini avatar Oct 30 '25 15:10 mfontanini

Sorry for not providing a more complete description earlier. Here's a full example:

A test[^1]

[^1]: https://example.com

<!-- end_slide -->

They're here:

Renders:

Image Image

Version: presenterm 0.15.1

yochem avatar Oct 30 '25 20:10 yochem

Thanks for the clarification. This is tied to how comrak (the markdown library we use) deals with footnote definitions. I created https://github.com/kivikakk/comrak/issues/669 to see if something can be changed there so definitions show up where they're defined.

mfontanini avatar Oct 30 '25 23:10 mfontanini

This issue was fixed in comrak a while back but it slipped through. This is now fixed in #803.

mfontanini avatar Nov 25 '25 00:11 mfontanini

Awesome, thanks!

yochem avatar Nov 25 '25 00:11 yochem