Skip to content

Footnote backlinks are put in their own paragraph after elements other than <p> #454

@kylebarbour

Description

@kylebarbour

If a footnote ends on any element other than <p>, the footnote backlink is put on a paragraph by itself. For example:

Text. [^f1] [^f2] [^f3]

[^f1]:
    > This is a blockquote.

[^f2]:
    1. This is an ordered list.

[^f3]:
    * This is an unordered list.

generates

Text. 1 2 3 4

  1. This is a paragraph. ↩

    1. This is an ordered list.

    • This is an unordered list.

  2. This is a blockquote.

The backlink is placed inside the paragraph at the end, but is put in a new paragraph for every other element type. I think it makes more aesthetic and semantic sense for each of these cases to have the behavior be the same as it currently is for paragraphs so that the backlink is on the same line:

Text. 1 2 3 4

  1. This is a paragraph. ↩

    1. This is an ordered list. ↩
    • This is an unordered list. ↩
  2. This is a blockquote.↩

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions