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

Support \label and \ref in footnotes #7930

Closed
jgm opened this issue Feb 19, 2022 · 1 comment
Closed

Support \label and \ref in footnotes #7930

jgm opened this issue Feb 19, 2022 · 1 comment

Comments

@jgm
Copy link
Owner

jgm commented Feb 19, 2022

Example:

The issue with cross-reference.\footnote{\label{note:X}This note will be cross referenced.}

Now I refer to a previous note in a footnote.\footnote{See n. \ref{note:X}.}

Currently pandoc just prints the label name, but we could certainly compute the note number.

@jgm
Copy link
Owner Author

jgm commented Feb 19, 2022

Currently we parse the label as

Span ( "note:X" , [] , [ ( "label" , "note:X" ) ] ) []

and the reference as

Link
                ( ""
                , []
                , [ ( "reference-type" , "ref" )
                  , ( "reference" , "note:X" )
                  ]
                )
                [ Str "[note:X]" ]
                ( "#note:X" , "" )

@jgm jgm closed this as completed in 6fe8014 Feb 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant