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

Already on GitHub? Sign in to your account

Links in footnotes disappear when using `-V links-as-notes` #665

Open
bjornbm opened this Issue Nov 16, 2012 · 0 comments

Comments

Projects
None yet
2 participants
Contributor

bjornbm commented Nov 16, 2012

It seems that footnotes to footnotes don't work very well. This causes problems when -V links-as-notes is used, as any link in a footnote will be made into a new footnote which is not visible in the PDF output.

Example:

This is a [link](http://google.com) and^[This is [another
link](http://www.yahoo.com) in a footnote^[And this is a footnote in a
footnote]].

Output with -V links-as-notes looks something like:

This is a link^1 and^2.
________________
^1http://google.com
^2This is another link^3 in a footnote^4

I have two proposals:

  1. When a footnote is found within another footnote just add the footnote at the same level as the parent footnote. The output for the example would be:

    This is a link^1 and^2.
    ________________
    ^1http://google.com
    ^2This is another link^3 in a footnote^4
    ^3http://www.yahoo.com
    ^4And this is a footnote in a footnote
    
  2. When using -V links-as-notes links in footnotes revert to some other visual representation of links (while footnotes in footnotes remain broken), e.g.

    This is a link^1 and^2.
    ________________
    ^1http://google.com
    ^2This is another link[http://www.yahoo.com] in a footnote^3
    

I prefer the first proposal. If footnotes in footnotes are to remain broken perhaps a warning should be issued when they are encountered?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment