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

Command to Externalize In-Line Footnotes #15

Open
polyglot-jones opened this issue Jul 24, 2021 · 0 comments
Open

Command to Externalize In-Line Footnotes #15

polyglot-jones opened this issue Jul 24, 2021 · 0 comments
Labels
⚙️ commands Package Feature: Commands

Comments

@polyglot-jones
Copy link
Collaborator

Add a command to convert all inline footnotes to externalized footnotes, by way of AsciiDoc attributes.

Some text.footnote:[Some note.]

becomes:

Some text.{fn1}

with this is added to the top of the file:

:fn1: footnote:[Some note.]

The new attribute name will be :fnNN: where NN is whatever number is the highest existing footnote number plus one.
Just in case the author has a habit of moving the exterized footnotes to a separate include file, we'll scan for all references ({fnNN}) to determine the highest number, not just definitions (:fnNN:)

Newly assigned numbers will not be zero-padded, even if the existing number(s) are.

@tajmone tajmone added the ⚙️ commands Package Feature: Commands label Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚙️ commands Package Feature: Commands
Projects
None yet
Development

No branches or pull requests

2 participants