Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculate counter increment based on footnote type #13

Open
alerque opened this issue Apr 4, 2019 · 1 comment
Open

Calculate counter increment based on footnote type #13

alerque opened this issue Apr 4, 2019 · 1 comment

Comments

@alerque
Copy link
Member

alerque commented Apr 4, 2019

The new auto-counter calculator –while arguably much more useful out of the box– does actually clobber some more customized workflows. In particular the ability to keep separate counters per footnote style is basically obliterated by calculating the next available number all the time.

It looks to me like the best option is going to be to drop the ability to manually set the counter value at all, but add regex matching to the auto-counter calculator to only count footnotes of the same style. This way adding a new footnote would always increment above the number of current footnotes on a per-style basis?

Does anybody have a use case that would not be covered satisfactorily by this solution?

@alerque
Copy link
Member Author

alerque commented Apr 4, 2019

I just checked and Pandoc allows any identifier as input but does not output anything but Arabic numbered footnotes. Do any known Markdown processors treat the identifier as anything other than a tokien?

Given input file test.md:

foo[^a]

[^a]: bar

Pandoc normalizes this to:

❯ pandoc --from markdown --to markdown < test.md
foo[^1]

[^1]: bar

@alerque alerque changed the title Calculate auto-conter based on footnote type Calculate counter increment based on footnote type Apr 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant