asciidocfx / AsciidocFX

Asciidoc Editor and Toolchain written with JavaFX 21 (Build PDF, Epub, Mobi and HTML books, documents and slides)
http://www.asciidocfx.com/
Apache License 2.0
1.86k stars 296 forks source link

footnote numbering in preview wrong #595

Open rlb2015 opened 1 year ago

rlb2015 commented 1 year ago

I'm new to AsciidocFX and my searches in issues and in Google did not produce anything useful. This is a minor issue as there is a workaround.

In the previewer, the footnote numbering is off when externalizing the footnote.

Here are images using the example code from Asccidoctor Docs for Externalized footnote (Example 2).

The first footnote should be 1 not 3. image If you inline the footnote you still get incorrect as well image If you include a separate file with footnotes, it is also incorrect.

It should look like this (using VSCode preview): image

If the footnote document attributes are moved to the Preview Settings instead of at the document top, it does resolve the issue. The only 'complaint' would be if you access the file with anything other than AsciidocFX you no longer have the footnotes.