Skip to content

(enhancement) proposal for footnotes #1720

@ousia

Description

@ousia

Similar to #1612, I think it would be interesting that the user were able to place footnotes in the document.

My proposal doesn’t intend to change the default way footnotes are handled. It is an improvement, optional for the user to deploy.

Right now, footnotes in HTML documents are placed at the end of the first level section, such as in:


---
title: Footnotes
...

# Chapter One

^[footnote one]

# Chapter Two

^[footnote two]

# Chapter Three

^[footnote three]

# Chapter Four

^[footnote four]

# Chapter Five

^[footnote five]

How about being able to add a first–level title that places all footnotes in the document at the given location?

A minimal sample would be:

# footnotes

Similar to the table of contents, harcoding a title for footnotes should be avoided. The ttitle for footnotes could be specified as a YAML field, such as in:


---
footnotes: Notas
....

Another way to implement it would be to use a first–level title that contains an special identifier, such as in:

# Notas {#footnotes #notas .hidden}

Two important remarks for both approaches:

  1. Other attributes than the #footnotes identifier should be allowed in the title for footnotes.
  2. If there is some text—whatever it comes before the next first–level title—in the section for footnotes, it should be placed after the title and before the footnotes themselves. Sometimes these passages are useful to explain relevant information about the footnotes.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions