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

nested footnotes #4241

Closed
gour opened this issue Jan 10, 2018 · 2 comments
Closed

nested footnotes #4241

gour opened this issue Jan 10, 2018 · 2 comments

Comments

@gour
Copy link

gour commented Jan 10, 2018

There is one feature which I occassionally need that seems to be problematic with certain markup and
especially when converting from one markup to another.

Afaik, Asciidoc(tor) cannot cope with nested footnotes, but rst and (extended) markdown can do it.

Here are simple examples:

  • rst
This is a sentence with the first footnote. [1]_

Here is the second one. [2]_

.. [1] Text of the 1st footnote having nested [3]_ footnote.

.. [2] This is the text for the 2nd footnote.

.. [3] Text of the nested footnote.

and the generated output is:

This is a sentence with the first footnote.[^1]

Here is the second one.[^2]

[^1]: Text of the 1st footnote having nested footnote.

[^2]: This is the text for the 2nd footnote.
  • with the markdown --> rst conversion, the following file:
This is a sentence with the first footnote.[^1]

Here is the second one.[^2]

[^1]: Text of the 1st footnote having nested[^3] footnote.

[^2]: This is the text for the 2nd footnote.

[^3]: Text of the nested footnote.

gives the following:

This is a sentence with the first footnote. [1]_

Here is the second one. [2]_

.. [1]
   Text of the 1st footnote having nested[^3] footnote.

.. [2]
   This is the text for the 2nd footnote.

My version of pandoc is 1.19.1 (Fedora version), but same thing with the online version.

@link2xt
Copy link
Collaborator

link2xt commented Jan 12, 2018

Possible duplicate of issue #2053

@gour
Copy link
Author

gour commented Jan 12, 2018

@labdsf You're correct. It can be closed.

@gour gour closed this as completed Jan 12, 2018
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

2 participants