content icon indicating copy to clipboard operation
content copied to clipboard

Improper ordering of footnotes

Open sausin opened this issue 5 years ago • 2 comments

Version

@nuxt/content: 1.8.1 nuxt: 2.14.5

Reproduction Link

https://codesandbox.io/s/cool-saha-fhehg?file=/content/index.md:0-463

Steps to reproduce

Just add a footnote with a number later in the sequence than existing footnotes, appearing before the existing footnotes.

What is Expected?

Whichever system is followed, the result should be consistent.

What is actually happening?

The sequence in the footnotes at the bottom is in order of appearance of the footnote, while the actual sequence number is seen in the actual content area.

sausin avatar Sep 13 '20 12:09 sausin

It may be related to https://github.com/remarkjs/remark/pull/536

atinux avatar Dec 16 '20 14:12 atinux

Footnotes are ordered by their appearance in the document https://github.com/remarkjs/remark-rehype/issues/11#issuecomment-486114767

ChristianMurphy avatar Jul 11 '21 13:07 ChristianMurphy