You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When converting from org-mode, it seems that the pandoc does not treat the footnote references that point to the same one as the same one, but instead separates them as single.
For example,
My Org file:
This is fn fn1[fn:fn1]
This is also fn1[fn:fn1]
This is fn2[fn:2]
This is also fn2[fn:2]
[fn:fn1] footnote 1.
[fn:2] footnote 2.
Command:
pandoc -t markdown sample.org
Expected result:
This is fn fn1[^fn1]
This is also fn1[^fn1]
This is fn2[^2]
This is also fn2[^2][^fn1]: footnote 1.
[^2]: footnote 2.
The actual result:
This is fn fn1[^1]
This is also fn1[^2]
This is fn2[^3]
This is also fn2[^4][^1]: footnote 1.
[^2]: footnote 1.
[^3]: footnote 2.
[^4]: footnote 2.
After that, I also tried to use markdown directly. I found that markdown seems to be the same and cannot accurately identify footnote.
The markdown file:
This is fn1[^fn1].
This is also fn1[^fn1].
[^fn1]: 123
Command:
pandoc -t markdown sample.md
The excepted result should be the same as the original one, but the actual result is:
This is fn1[^1]. This is also fn1[^2].
[^1]: 123
[^2]: 123
The text was updated successfully, but these errors were encountered:
This is essentially the same as #1603, so closing as a duplicate.
Note that the underlying issue has to do with the way pandoc represents notes internally, and isn't specific to markdown, org, or any other input format. As a result, there's no easy fix without revising the Pandoc AST.
Thank you very much. I'm sorry to duplicate. Due to I get it that when converting org to html, when searching through the issues, I specific the label as org-mode.
You may want to add a note on that issue that the same thing
happens with org, to make it easier for people to find.
Nasy <notifications@github.com> writes:
Thank you very much. I'm sorry to duplicate. Due to I get it that when converting org to html, when searching through the issues, I specific the label as org-mode.
--
You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub:
#4647 (comment)
When converting from org-mode, it seems that the pandoc does not treat the footnote references that point to the same one as the same one, but instead separates them as single.
For example,
My Org file:
Command:
Expected result:
The actual result:
After that, I also tried to use markdown directly. I found that markdown seems to be the same and cannot accurately identify footnote.
The markdown file:
Command:
The excepted result should be the same as the original one, but the actual result is:
The text was updated successfully, but these errors were encountered: