Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Open
bjornbm opened this Issue · 0 comments

2 participants

@bjornbm

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
Something went wrong with that request. Please try again.