nuxt / content

The file-based CMS for your Nuxt application, powered by Markdown and Vue components.
https://content.nuxt.com
MIT License
3.11k stars 624 forks source link

Improper ordering of footnotes #474

Open sausin opened 4 years ago

sausin commented 4 years ago

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.

atinux commented 3 years ago

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

ChristianMurphy commented 3 years ago

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