vivliostyle / vfm

⬇️ Open and extendable Markdown syntax and toolchain.
https://vivliostyle.github.io/vfm/#/vfm
Other
69 stars 12 forks source link

footnote in table can't refer in defined order #129

Open kenhys opened 2 years ago

kenhys commented 2 years ago

Describe the bug

footnote in table can't refer in defined order.

To Reproduce Steps to reproduce the behavior:

  1. npm create book
  2. choose @vivliostyle/theme-techbook
  3. Write manuscript which use footnote in table.
  4. npm run preview

Here is the manuscript.

# Footnote examples

|           | Foo | Bar | Baz |
|-----------|-----|-----|-----|
| foo       | ○  | ☓   | ☓   |
| bar[^fn1] | ○  | ☓   | ☓   |
| baz[^fn2] | ○  | ☓   | ☓   |
| bee[^fn3] | ○  | ☓   | ☓   |

* footnote of bar matches fn1
* footnote of baz matches fn2
* footnote of bee matches fn3

[^fn1]: fn1
[^fn2]: fn2
[^fn3]: fn3

Expected behavior

footnote in table is refereed defined order.

Screenshots

Screenshot from 2021-11-04 22-06-24

It should be:

  1. fn1
  2. fn2
  3. fn3

Desktop (please complete the following information):

@vivliostyle/core 2.11.3 @vivliostyle/vfm 1.0.2 @vivliostyle/theme-techbook 0.3.1

Additional context

N/A

MurakamiShinyu commented 2 years ago

This seems to be a vfm issue. Could you move this issue to https://github.com/vivliostyle/vfm/issues ?

kenhys commented 2 years ago

@MurakamiShinyu I guess that you can do transfer issue (menu is placed at right side bar?)

something like:

image