Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add footnotes #324

Open
hugomardbrink opened this issue May 12, 2023 · 1 comment
Open

Add footnotes #324

hugomardbrink opened this issue May 12, 2023 · 1 comment

Comments

@hugomardbrink
Copy link
Collaborator

Add support for footnotes in latex and html.

@hugomardbrink hugomardbrink self-assigned this May 12, 2023
@adelhult
Copy link
Collaborator

adelhult commented May 13, 2023

There are multiple ways we could go about implementing footnotes for the HTML format:

  • Using a footnotes variable and for each [note] push a unique id to that list together with the content. Then let the [note] module spawn another [note-label] that reads the list after every item is added.
  • Using a footnotes variable and changing the scheduling system to allow us to read the list while pushing and generating the label straight away.
  • Generating some content in-place: like these articles do.
  • Using "side-notes", see article. I think that might be the nicest one but I'm not really sure how we would go about implementing that with our current system.

After sleeping on it seems like the third approach might gives us the best result for the least effort. So I'll continue where Hugo left of yesterday and attempt at implementing that!

Nevermind, looks like <details> can't be used inside paragraphs. Back to square one : )

@hugomardbrink hugomardbrink removed their assignment May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants